Skip to content

Commit

Permalink
refactor: fix ruff ARG checks (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
ELC authored Jul 9, 2024
1 parent 55c232c commit 825988a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def iter_rows(
self,
*,
named: bool = False,
buffer_size: int = 512,
buffer_size: int = 512, # noqa: ARG002
) -> Iterator[list[tuple[Any, ...]]] | Iterator[list[dict[str, Any]]]:
"""
NOTE:
Expand Down
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def is_sorted(self: Self, *, descending: bool = False) -> bool:
else:
return self._native_series.is_monotonic_increasing # type: ignore[no-any-return]

def value_counts(self: Self, *, sort: bool = False, parallel: bool = False) -> Any:
def value_counts(self: Self, *, sort: bool = False, parallel: bool = False) -> Any: # noqa: ARG002
"""Parallel is unused, exists for compatibility"""
from narwhals._pandas_like.dataframe import PandasDataFrame

Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ lint.ignore = [
'A003',
'ANN101',
'ANN401',
'ARG002', # todo: enable
'ARG003', # todo: enable
'C901',
'COM812',
'D',
Expand Down

0 comments on commit 825988a

Please sign in to comment.