Skip to content

Commit

Permalink
no cover if block
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi authored Sep 15, 2024
1 parent 666f8be commit e6e2f4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions narwhals/_arrow/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def __getitem__(

# PyArrow columns are always strings
col_name = item[1] if isinstance(item[1], str) else self.columns[item[1]]
if isinstance(item[0], str):
msg = "Can not slice with tuple with the first element as a str" # pragma: no cover
raise TypeError(msg) # pragma: no cover
if isinstance(item[0], str): # pragma: no cover
msg = "Can not slice with tuple with the first element as a str"
raise TypeError(msg)
if (isinstance(item[0], slice)) and (item[0] == slice(None)):
return ArrowSeries(
self._native_frame[col_name],
Expand Down

0 comments on commit e6e2f4a

Please sign in to comment.