Skip to content

Commit 11d21c6

Browse files
committed
chore(typing): Ignore fixed stub error
@MarcoGorelli fixed in pandas-dev/pandas-stubs#1115
1 parent d876703 commit 11d21c6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

narwhals/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,15 +854,16 @@ def _is_range_index(obj: Any, native_namespace: Any) -> TypeIs[pd.RangeIndex]:
854854
return isinstance(obj, native_namespace.RangeIndex)
855855

856856

857+
# NOTE: Remove ignore(s) after release w/ (https://github.com/pandas-dev/pandas-stubs/pull/1115)
857858
def _has_default_index(
858859
native_frame_or_series: pd.Series[Any] | pd.DataFrame, native_namespace: Any
859860
) -> bool:
860861
index = native_frame_or_series.index
861862
return (
862863
_is_range_index(index, native_namespace)
863-
and index.start == 0
864-
and index.stop == len(index)
865-
and index.step == 1
864+
and index.start == 0 # type: ignore[comparison-overlap]
865+
and index.stop == len(index) # type: ignore[comparison-overlap]
866+
and index.step == 1 # type: ignore[comparison-overlap]
866867
)
867868

868869

0 commit comments

Comments
 (0)