@@ -50,6 +50,7 @@ from pandas._typing import (
5050 ArrayLike ,
5151 AxesData ,
5252 DropKeep ,
53+ Dtype ,
5354 DtypeArg ,
5455 DTypeLike ,
5556 DtypeObj ,
@@ -89,7 +90,6 @@ class Index(IndexOpsMixin[S1]):
8990 copy : bool = ...,
9091 name : Hashable = ...,
9192 tupleize_cols : bool = ...,
92- ** kwargs ,
9393 ) -> Index [int ]: ...
9494 @overload
9595 def __new__ (
@@ -100,7 +100,6 @@ class Index(IndexOpsMixin[S1]):
100100 copy : bool = ...,
101101 name : Hashable = ...,
102102 tupleize_cols : bool = ...,
103- ** kwargs ,
104103 ) -> Index [int ]: ...
105104 @overload
106105 def __new__ (
@@ -111,7 +110,6 @@ class Index(IndexOpsMixin[S1]):
111110 copy : bool = ...,
112111 name : Hashable = ...,
113112 tupleize_cols : bool = ...,
114- ** kwargs ,
115113 ) -> Index [float ]: ...
116114 @overload
117115 def __new__ (
@@ -122,7 +120,6 @@ class Index(IndexOpsMixin[S1]):
122120 copy : bool = ...,
123121 name : Hashable = ...,
124122 tupleize_cols : bool = ...,
125- ** kwargs ,
126123 ) -> Index [float ]: ...
127124 @overload
128125 def __new__ (
@@ -137,7 +134,6 @@ class Index(IndexOpsMixin[S1]):
137134 copy : bool = ...,
138135 name : Hashable = ...,
139136 tupleize_cols : bool = ...,
140- ** kwargs ,
141137 ) -> Index [complex ]: ...
142138 @overload
143139 def __new__ (
@@ -148,7 +144,6 @@ class Index(IndexOpsMixin[S1]):
148144 copy : bool = ...,
149145 name : Hashable = ...,
150146 tupleize_cols : bool = ...,
151- ** kwargs ,
152147 ) -> Index [complex ]: ...
153148 # special overloads with dedicated Index-subclasses
154149 @overload
@@ -160,7 +155,6 @@ class Index(IndexOpsMixin[S1]):
160155 copy : bool = ...,
161156 name : Hashable = ...,
162157 tupleize_cols : bool = ...,
163- ** kwargs ,
164158 ) -> DatetimeIndex : ...
165159 @overload
166160 def __new__ (
@@ -171,7 +165,6 @@ class Index(IndexOpsMixin[S1]):
171165 copy : bool = ...,
172166 name : Hashable = ...,
173167 tupleize_cols : bool = ...,
174- ** kwargs ,
175168 ) -> DatetimeIndex : ...
176169 @overload
177170 def __new__ (
@@ -182,7 +175,6 @@ class Index(IndexOpsMixin[S1]):
182175 copy : bool = ...,
183176 name : Hashable = ...,
184177 tupleize_cols : bool = ...,
185- ** kwargs ,
186178 ) -> PeriodIndex : ...
187179 @overload
188180 def __new__ (
@@ -193,7 +185,6 @@ class Index(IndexOpsMixin[S1]):
193185 copy : bool = ...,
194186 name : Hashable = ...,
195187 tupleize_cols : bool = ...,
196- ** kwargs ,
197188 ) -> PeriodIndex : ...
198189 @overload
199190 def __new__ (
@@ -204,7 +195,6 @@ class Index(IndexOpsMixin[S1]):
204195 copy : bool = ...,
205196 name : Hashable = ...,
206197 tupleize_cols : bool = ...,
207- ** kwargs ,
208198 ) -> TimedeltaIndex : ...
209199 @overload
210200 def __new__ (
@@ -215,7 +205,6 @@ class Index(IndexOpsMixin[S1]):
215205 copy : bool = ...,
216206 name : Hashable = ...,
217207 tupleize_cols : bool = ...,
218- ** kwargs ,
219208 ) -> TimedeltaIndex : ...
220209 @overload
221210 def __new__ (
@@ -226,7 +215,6 @@ class Index(IndexOpsMixin[S1]):
226215 copy : bool = ...,
227216 name : Hashable = ...,
228217 tupleize_cols : bool = ...,
229- ** kwargs ,
230218 ) -> IntervalIndex [Interval [_OrderableT ]]: ...
231219 @overload
232220 def __new__ (
@@ -237,7 +225,6 @@ class Index(IndexOpsMixin[S1]):
237225 copy : bool = ...,
238226 name : Hashable = ...,
239227 tupleize_cols : bool = ...,
240- ** kwargs ,
241228 ) -> IntervalIndex [Interval [Any ]]: ...
242229 # generic overloads
243230 @overload
@@ -249,7 +236,6 @@ class Index(IndexOpsMixin[S1]):
249236 copy : bool = ...,
250237 name : Hashable = ...,
251238 tupleize_cols : bool = ...,
252- ** kwargs ,
253239 ) -> Self : ...
254240 @overload
255241 def __new__ (
@@ -260,19 +246,17 @@ class Index(IndexOpsMixin[S1]):
260246 copy : bool = ...,
261247 name : Hashable = ...,
262248 tupleize_cols : bool = ...,
263- ** kwargs ,
264249 ) -> Self : ...
265250 # fallback overload
266251 @overload
267252 def __new__ (
268253 cls ,
269254 data : AxesData ,
270255 * ,
271- dtype = ...,
256+ dtype : Dtype = ...,
272257 copy : bool = ...,
273258 name : Hashable = ...,
274259 tupleize_cols : bool = ...,
275- ** kwargs ,
276260 ) -> Self : ...
277261 @property
278262 def str (
0 commit comments