Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Aug 21, 2024
1 parent bb82732 commit ba21fda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion narwhals/_arrow/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def __getitem__(
)
)
msg = f"Expected slice of integers of strings, got: {type(item[1])}" # pragma: no cover
raise TypeError(msg)
raise TypeError(msg) # pragma: no cover

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 @@ -168,7 +168,7 @@ def __getitem__(
]
)
msg = f"Expected slice of integers of strings, got: {type(item[1])}" # pragma: no cover
raise TypeError(msg)
raise TypeError(msg) # pragma: no cover

elif isinstance(item, tuple) and len(item) == 2:
from narwhals._pandas_like.series import PandasLikeSeries
Expand Down
2 changes: 1 addition & 1 deletion narwhals/_polars/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __getitem__(self, item: Any) -> Any:
).__getitem__(item[0])
)
msg = f"Expected slice of integers of strings, got: {type(item[1])}" # pragma: no cover
raise TypeError(msg)
raise TypeError(msg) # pragma: no cover
pl = get_polars()
result = self._native_frame.__getitem__(item)
if isinstance(result, pl.Series):
Expand Down

0 comments on commit ba21fda

Please sign in to comment.