From 00669942fb8063f2de670a5d6cc0092ed89c5cee Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Sun, 9 Mar 2025 11:56:27 +0000 Subject: [PATCH] chore(typing): remove unused `pandas-stubs` ignores https://github.com/pandas-dev/pandas-stubs/commit/6db30fc168beb804e18583a5ad2774987fab5397 --- narwhals/utils.py | 6 +++--- tests/utils_test.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/narwhals/utils.py b/narwhals/utils.py index 0fa1f312fc..8512c79afe 100644 --- a/narwhals/utils.py +++ b/narwhals/utils.py @@ -984,9 +984,9 @@ def _has_default_index( index = native_frame_or_series.index return ( _is_range_index(index, native_namespace) - and index.start == 0 # type: ignore[comparison-overlap] - and index.stop == len(index) # type: ignore[comparison-overlap] - and index.step == 1 # type: ignore[comparison-overlap] + and index.start == 0 + and index.stop == len(index) + and index.step == 1 ) diff --git a/tests/utils_test.py b/tests/utils_test.py index b0494a046a..93ab14b9b4 100644 --- a/tests/utils_test.py +++ b/tests/utils_test.py @@ -140,7 +140,7 @@ def test_maybe_set_index_pandas_direct_index( native_df_or_series.index = pandas_index # type: ignore[assignment] assert_series_equal(nw.to_native(result), native_df_or_series) else: - expected = native_df_or_series.set_index(pandas_index) # type: ignore[type-var] + expected = native_df_or_series.set_index(pandas_index) # type: ignore[arg-type] assert_frame_equal(nw.to_native(result), expected)