Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev committed May 14, 2024
1 parent 18eec16 commit 5573fcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 5 additions & 5 deletions modin/core/storage_formats/base/query_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ def merge_asof(
tolerance=None,
allow_exact_matches: bool = True,
direction: str = "backward",
): # noqa: GL08
):
# Pandas fallbacks for tricky cases:
if (
# No idea how this works or why it does what it does; and in fact
Expand Down Expand Up @@ -3624,7 +3624,7 @@ def groupby_fillna(

def groupby_diff(
self, by, axis, groupby_kwargs, agg_args, agg_kwargs, drop=False
): # noqa: GL08
):
return self.groupby_agg(
by=by,
agg_func="diff",
Expand All @@ -3637,7 +3637,7 @@ def groupby_diff(

def groupby_pct_change(
self, by, axis, groupby_kwargs, agg_args, agg_kwargs, drop=False
): # noqa: GL08
):
return self.groupby_agg(
by=by,
agg_func="pct_change",
Expand Down Expand Up @@ -3945,7 +3945,7 @@ def groupby_ohlc(
agg_args,
agg_kwargs,
is_df,
): # noqa: GL08
):
if not is_df:
return self.groupby_agg(
by=by,
Expand Down Expand Up @@ -4609,7 +4609,7 @@ def shift(
freq,
axis,
fill_value,
): # noqa: GL08
):
return DataFrameDefault.register(pandas.DataFrame.shift)(
self, periods, freq, axis, fill_value
)
Expand Down
3 changes: 0 additions & 3 deletions modin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,6 @@ def _replace_doc(
target_doc = target_obj.__doc__ or ""
overwrite = overwrite or not target_doc
doc = source_doc if overwrite else target_doc
if doc == "":
# Empty docstrings do not need to be inherited
return

if parent_cls and not attr_name:
if isinstance(target_obj, property):
Expand Down

0 comments on commit 5573fcb

Please sign in to comment.