Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
leosmerling-hopeit committed Mar 20, 2024
1 parent 8f661a8 commit 464eb62
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions plugins/data/dataframes/src/hopeit/dataframes/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ def __init_from_series__(
@classmethod
def _from_df(cls, df: pd.DataFrame, **series: Any) -> DataFrameT:
df = df if cls.__data_object__["unsafe"] else pd.DataFrame(df)
# for col, values in series.items():
# df[col] = values
obj = cls(**{**df._series, **series}) # pylint: disable=protected-access
return obj # type: ignore

Expand Down Expand Up @@ -196,7 +194,6 @@ def add_dataframe_mixin(cls) -> Type[DataFrameMixin]:
cls.__name__,
(DataFrameMixin, JsonSchemaMixin) + cls.__mro__,
dict(cls.__dict__),
# cls.__name__, cls.__mro__, dict(cls.__dict__)
)
setattr(amended_class, "__init__", DataFrameMixin.__init_from_series__)
return amended_class
Expand Down Expand Up @@ -243,8 +240,3 @@ def wrap(cls) -> Type[DataFrameMixin]:
if decorated_class is None:
return wrap
return wrap(decorated_class) # type: ignore


# class DataFrame(DataFrameMixin, Generic[DataFrameT]):
# def __new__(cls, obj: DataFrameT):
# return obj
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def add_dataframe_mixin(cls) -> Type[DataFrameObjectMixin]:
cls.__name__,
(DataFrameObjectMixin,) + cls.__mro__,
dict(cls.__dict__),
# cls.__name__, cls.__mro__, dict(cls.__dict__)
)
return amended_class
return cls
Expand Down
1 change: 0 additions & 1 deletion plugins/storage/fs/test/unit/test_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ async def test_list_objects(monkeypatch):
]

files = await fs.list_files()
print(files)
assert files == [
ItemLocator("1.json", None),
ItemLocator("2.json", None),
Expand Down

0 comments on commit 464eb62

Please sign in to comment.