diff --git a/narwhals/_arrow/dataframe.py b/narwhals/_arrow/dataframe.py index 401834bcf..e433a0535 100644 --- a/narwhals/_arrow/dataframe.py +++ b/narwhals/_arrow/dataframe.py @@ -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 diff --git a/narwhals/_pandas_like/dataframe.py b/narwhals/_pandas_like/dataframe.py index 7bc413c1b..7d4a700d1 100644 --- a/narwhals/_pandas_like/dataframe.py +++ b/narwhals/_pandas_like/dataframe.py @@ -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 diff --git a/narwhals/_polars/dataframe.py b/narwhals/_polars/dataframe.py index 0045a1f1c..b7c781659 100644 --- a/narwhals/_polars/dataframe.py +++ b/narwhals/_polars/dataframe.py @@ -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):