Skip to content

Commit

Permalink
add type ignore assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
EdAbati committed Oct 27, 2024
1 parent 5ba74f4 commit 2525b61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion narwhals/_arrow/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def __getitem__(
),
) -> ArrowSeries | ArrowDataFrame:
if isinstance(item, tuple):
item = tuple(list(i) if is_sequence_but_not_str(i) else i for i in item)
item = tuple(list(i) if is_sequence_but_not_str(i) else i for i in item) # type: ignore[assignment]

if isinstance(item, str):
from narwhals._arrow.series import ArrowSeries
Expand Down
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def __getitem__(
),
) -> PandasLikeSeries | PandasLikeDataFrame:
if isinstance(item, tuple):
item = tuple(list(i) if is_sequence_but_not_str(i) else i for i in item)
item = tuple(list(i) if is_sequence_but_not_str(i) else i for i in item) # type: ignore[assignment]

if isinstance(item, str):
from narwhals._pandas_like.series import PandasLikeSeries
Expand Down

0 comments on commit 2525b61

Please sign in to comment.