@@ -50,6 +50,7 @@ from pandas._typing import (
50
50
ArrayLike ,
51
51
AxesData ,
52
52
DropKeep ,
53
+ Dtype ,
53
54
DtypeArg ,
54
55
DTypeLike ,
55
56
DtypeObj ,
@@ -89,7 +90,6 @@ class Index(IndexOpsMixin[S1]):
89
90
copy : bool = ...,
90
91
name : Hashable = ...,
91
92
tupleize_cols : bool = ...,
92
- ** kwargs ,
93
93
) -> Index [int ]: ...
94
94
@overload
95
95
def __new__ (
@@ -100,7 +100,6 @@ class Index(IndexOpsMixin[S1]):
100
100
copy : bool = ...,
101
101
name : Hashable = ...,
102
102
tupleize_cols : bool = ...,
103
- ** kwargs ,
104
103
) -> Index [int ]: ...
105
104
@overload
106
105
def __new__ (
@@ -111,7 +110,6 @@ class Index(IndexOpsMixin[S1]):
111
110
copy : bool = ...,
112
111
name : Hashable = ...,
113
112
tupleize_cols : bool = ...,
114
- ** kwargs ,
115
113
) -> Index [float ]: ...
116
114
@overload
117
115
def __new__ (
@@ -122,7 +120,6 @@ class Index(IndexOpsMixin[S1]):
122
120
copy : bool = ...,
123
121
name : Hashable = ...,
124
122
tupleize_cols : bool = ...,
125
- ** kwargs ,
126
123
) -> Index [float ]: ...
127
124
@overload
128
125
def __new__ (
@@ -137,7 +134,6 @@ class Index(IndexOpsMixin[S1]):
137
134
copy : bool = ...,
138
135
name : Hashable = ...,
139
136
tupleize_cols : bool = ...,
140
- ** kwargs ,
141
137
) -> Index [complex ]: ...
142
138
@overload
143
139
def __new__ (
@@ -148,7 +144,6 @@ class Index(IndexOpsMixin[S1]):
148
144
copy : bool = ...,
149
145
name : Hashable = ...,
150
146
tupleize_cols : bool = ...,
151
- ** kwargs ,
152
147
) -> Index [complex ]: ...
153
148
# special overloads with dedicated Index-subclasses
154
149
@overload
@@ -160,7 +155,6 @@ class Index(IndexOpsMixin[S1]):
160
155
copy : bool = ...,
161
156
name : Hashable = ...,
162
157
tupleize_cols : bool = ...,
163
- ** kwargs ,
164
158
) -> DatetimeIndex : ...
165
159
@overload
166
160
def __new__ (
@@ -171,7 +165,6 @@ class Index(IndexOpsMixin[S1]):
171
165
copy : bool = ...,
172
166
name : Hashable = ...,
173
167
tupleize_cols : bool = ...,
174
- ** kwargs ,
175
168
) -> DatetimeIndex : ...
176
169
@overload
177
170
def __new__ (
@@ -182,7 +175,6 @@ class Index(IndexOpsMixin[S1]):
182
175
copy : bool = ...,
183
176
name : Hashable = ...,
184
177
tupleize_cols : bool = ...,
185
- ** kwargs ,
186
178
) -> PeriodIndex : ...
187
179
@overload
188
180
def __new__ (
@@ -193,7 +185,6 @@ class Index(IndexOpsMixin[S1]):
193
185
copy : bool = ...,
194
186
name : Hashable = ...,
195
187
tupleize_cols : bool = ...,
196
- ** kwargs ,
197
188
) -> PeriodIndex : ...
198
189
@overload
199
190
def __new__ (
@@ -204,7 +195,6 @@ class Index(IndexOpsMixin[S1]):
204
195
copy : bool = ...,
205
196
name : Hashable = ...,
206
197
tupleize_cols : bool = ...,
207
- ** kwargs ,
208
198
) -> TimedeltaIndex : ...
209
199
@overload
210
200
def __new__ (
@@ -215,7 +205,6 @@ class Index(IndexOpsMixin[S1]):
215
205
copy : bool = ...,
216
206
name : Hashable = ...,
217
207
tupleize_cols : bool = ...,
218
- ** kwargs ,
219
208
) -> TimedeltaIndex : ...
220
209
@overload
221
210
def __new__ (
@@ -226,7 +215,6 @@ class Index(IndexOpsMixin[S1]):
226
215
copy : bool = ...,
227
216
name : Hashable = ...,
228
217
tupleize_cols : bool = ...,
229
- ** kwargs ,
230
218
) -> IntervalIndex [Interval [_OrderableT ]]: ...
231
219
@overload
232
220
def __new__ (
@@ -237,7 +225,6 @@ class Index(IndexOpsMixin[S1]):
237
225
copy : bool = ...,
238
226
name : Hashable = ...,
239
227
tupleize_cols : bool = ...,
240
- ** kwargs ,
241
228
) -> IntervalIndex [Interval [Any ]]: ...
242
229
# generic overloads
243
230
@overload
@@ -249,7 +236,6 @@ class Index(IndexOpsMixin[S1]):
249
236
copy : bool = ...,
250
237
name : Hashable = ...,
251
238
tupleize_cols : bool = ...,
252
- ** kwargs ,
253
239
) -> Self : ...
254
240
@overload
255
241
def __new__ (
@@ -260,19 +246,17 @@ class Index(IndexOpsMixin[S1]):
260
246
copy : bool = ...,
261
247
name : Hashable = ...,
262
248
tupleize_cols : bool = ...,
263
- ** kwargs ,
264
249
) -> Self : ...
265
250
# fallback overload
266
251
@overload
267
252
def __new__ (
268
253
cls ,
269
254
data : AxesData ,
270
255
* ,
271
- dtype = ...,
256
+ dtype : Dtype = ...,
272
257
copy : bool = ...,
273
258
name : Hashable = ...,
274
259
tupleize_cols : bool = ...,
275
- ** kwargs ,
276
260
) -> Self : ...
277
261
@property
278
262
def str (
0 commit comments