Skip to content

Commit 3a434c2

Browse files
authored
Merge branch 'main' into compliant-package
2 parents 309f910 + 5069d0b commit 3a434c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

narwhals/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -985,9 +985,9 @@ def _has_default_index(
985985
index = native_frame_or_series.index
986986
return (
987987
_is_range_index(index, native_namespace)
988-
and index.start == 0 # type: ignore[comparison-overlap]
989-
and index.stop == len(index) # type: ignore[comparison-overlap]
990-
and index.step == 1 # type: ignore[comparison-overlap]
988+
and index.start == 0
989+
and index.stop == len(index)
990+
and index.step == 1
991991
)
992992

993993

tests/utils_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_maybe_set_index_pandas_direct_index(
140140
native_df_or_series.index = pandas_index # type: ignore[assignment]
141141
assert_series_equal(nw.to_native(result), native_df_or_series)
142142
else:
143-
expected = native_df_or_series.set_index(pandas_index) # type: ignore[type-var]
143+
expected = native_df_or_series.set_index(pandas_index) # type: ignore[arg-type]
144144
assert_frame_equal(nw.to_native(result), expected)
145145

146146

0 commit comments

Comments
 (0)