@@ -42,6 +42,7 @@ from typing_extensions import (
42
42
from pandas ._libs .interval import _OrderableT
43
43
from pandas ._typing import (
44
44
S1 ,
45
+ Axes ,
45
46
Dtype ,
46
47
DtypeArg ,
47
48
DtypeObj ,
@@ -81,7 +82,7 @@ class Index(IndexOpsMixin[S1]):
81
82
@overload
82
83
def __new__ (
83
84
cls ,
84
- data : Iterable ,
85
+ data : Axes ,
85
86
* ,
86
87
dtype : Literal ["int" ] | type_t [int | np .integer ],
87
88
copy : bool = ...,
@@ -103,7 +104,7 @@ class Index(IndexOpsMixin[S1]):
103
104
@overload
104
105
def __new__ (
105
106
cls ,
106
- data : Iterable ,
107
+ data : Axes ,
107
108
* ,
108
109
dtype : Literal ["float" ] | type_t [float | np .floating ],
109
110
copy : bool = ...,
@@ -129,7 +130,7 @@ class Index(IndexOpsMixin[S1]):
129
130
@overload
130
131
def __new__ (
131
132
cls ,
132
- data : Iterable ,
133
+ data : Axes ,
133
134
* ,
134
135
dtype : Literal ["complex" ] | type_t [complex | np .complexfloating ],
135
136
copy : bool = ...,
@@ -152,7 +153,7 @@ class Index(IndexOpsMixin[S1]):
152
153
@overload
153
154
def __new__ (
154
155
cls ,
155
- data : Iterable ,
156
+ data : Axes ,
156
157
* ,
157
158
dtype : TimestampDtypeArg ,
158
159
copy : bool = ...,
@@ -174,7 +175,7 @@ class Index(IndexOpsMixin[S1]):
174
175
@overload
175
176
def __new__ (
176
177
cls ,
177
- data : Iterable ,
178
+ data : Axes ,
178
179
* ,
179
180
dtype : PeriodDtype ,
180
181
copy : bool = ...,
@@ -196,7 +197,7 @@ class Index(IndexOpsMixin[S1]):
196
197
@overload
197
198
def __new__ (
198
199
cls ,
199
- data : Iterable ,
200
+ data : Axes ,
200
201
* ,
201
202
dtype : TimedeltaDtypeArg ,
202
203
copy : bool = ...,
@@ -218,7 +219,7 @@ class Index(IndexOpsMixin[S1]):
218
219
@overload
219
220
def __new__ (
220
221
cls ,
221
- data : Iterable ,
222
+ data : Axes ,
222
223
* ,
223
224
dtype : Literal ["Interval" ],
224
225
copy : bool = ...,
@@ -241,7 +242,7 @@ class Index(IndexOpsMixin[S1]):
241
242
@overload
242
243
def __new__ (
243
244
cls ,
244
- data : Iterable = ...,
245
+ data : Axes = ...,
245
246
* ,
246
247
dtype : type [S1 ],
247
248
copy : bool = ...,
@@ -253,7 +254,7 @@ class Index(IndexOpsMixin[S1]):
253
254
@overload
254
255
def __new__ (
255
256
cls ,
256
- data : Iterable ,
257
+ data : Axes ,
257
258
* ,
258
259
dtype = ...,
259
260
copy : bool = ...,
0 commit comments