Skip to content

Commit 600ab56

Browse files
committed
import Index as NumericIndex
1 parent 841d92c commit 600ab56

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/test_indexes.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
from pandas._typing import IndexIterScalar
3333
else:
3434
if not PD_LTE_15:
35-
from typing_extensions import TypeAlias
36-
37-
NumericIndex: TypeAlias = pd.Index
35+
from pandas import Index as NumericIndex
3836
else:
3937
from pandas.core.indexes.numeric import NumericIndex
4038

tests/test_timefuncs.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@
5151

5252
else:
5353
if not PD_LTE_15:
54-
from typing_extensions import TypeAlias
55-
56-
NumericIndex: TypeAlias = pd.Index
54+
from pandas import Index as NumericIndex
5755
else:
5856
from pandas.core.indexes.numeric import NumericIndex
5957

0 commit comments

Comments
 (0)