@@ -66,7 +66,7 @@ class Index(IndexOpsMixin[S1]):
66
66
__hash__ : ClassVar [None ] # type: ignore[assignment]
67
67
# overloads with additional dtypes
68
68
@overload
69
- def __new__ ( # type: ignore[misc ]
69
+ def __new__ ( # type: ignore[overload-overlap ]
70
70
cls ,
71
71
data : Sequence [int | np .integer ] | IndexOpsMixin [int ] | np_ndarray_anyint ,
72
72
* ,
@@ -77,7 +77,7 @@ class Index(IndexOpsMixin[S1]):
77
77
** kwargs ,
78
78
) -> Index [int ]: ...
79
79
@overload
80
- def __new__ ( # type: ignore[misc ]
80
+ def __new__ ( # type: ignore[overload-overlap ]
81
81
cls ,
82
82
data : Iterable ,
83
83
* ,
@@ -88,7 +88,7 @@ class Index(IndexOpsMixin[S1]):
88
88
** kwargs ,
89
89
) -> Index [int ]: ...
90
90
@overload
91
- def __new__ ( # type: ignore[misc ]
91
+ def __new__ ( # type: ignore[overload-overlap ]
92
92
cls ,
93
93
data : Sequence [float | np .floating ] | IndexOpsMixin [float ] | np_ndarray_float ,
94
94
* ,
@@ -99,7 +99,7 @@ class Index(IndexOpsMixin[S1]):
99
99
** kwargs ,
100
100
) -> Index [float ]: ...
101
101
@overload
102
- def __new__ ( # type: ignore[misc ]
102
+ def __new__ ( # type: ignore[overload-overlap ]
103
103
cls ,
104
104
data : Iterable ,
105
105
* ,
@@ -110,7 +110,7 @@ class Index(IndexOpsMixin[S1]):
110
110
** kwargs ,
111
111
) -> Index [float ]: ...
112
112
@overload
113
- def __new__ ( # type: ignore[misc ]
113
+ def __new__ ( # type: ignore[overload-overlap ]
114
114
cls ,
115
115
data : Sequence [complex | np .complexfloating ]
116
116
| IndexOpsMixin [complex ]
@@ -123,7 +123,7 @@ class Index(IndexOpsMixin[S1]):
123
123
** kwargs ,
124
124
) -> Index [complex ]: ...
125
125
@overload
126
- def __new__ ( # type: ignore[misc ]
126
+ def __new__ ( # type: ignore[overload-overlap ]
127
127
cls ,
128
128
data : Iterable ,
129
129
* ,
@@ -135,7 +135,7 @@ class Index(IndexOpsMixin[S1]):
135
135
) -> Index [complex ]: ...
136
136
# special overloads with dedicated Index-subclasses
137
137
@overload
138
- def __new__ ( # type: ignore[misc ]
138
+ def __new__ ( # type: ignore[overload-overlap ]
139
139
cls ,
140
140
data : Sequence [np .datetime64 | datetime ] | IndexOpsMixin [datetime ],
141
141
* ,
@@ -146,7 +146,7 @@ class Index(IndexOpsMixin[S1]):
146
146
** kwargs ,
147
147
) -> DatetimeIndex : ...
148
148
@overload
149
- def __new__ ( # type: ignore[misc ]
149
+ def __new__ ( # type: ignore[overload-overlap ]
150
150
cls ,
151
151
data : Iterable ,
152
152
* ,
@@ -157,7 +157,7 @@ class Index(IndexOpsMixin[S1]):
157
157
** kwargs ,
158
158
) -> DatetimeIndex : ...
159
159
@overload
160
- def __new__ ( # type: ignore[misc ]
160
+ def __new__ ( # type: ignore[overload-overlap ]
161
161
cls ,
162
162
data : Sequence [Period ] | IndexOpsMixin [Period ],
163
163
* ,
@@ -168,7 +168,7 @@ class Index(IndexOpsMixin[S1]):
168
168
** kwargs ,
169
169
) -> PeriodIndex : ...
170
170
@overload
171
- def __new__ ( # type: ignore[misc ]
171
+ def __new__ ( # type: ignore[overload-overlap ]
172
172
cls ,
173
173
data : Iterable ,
174
174
* ,
@@ -179,7 +179,7 @@ class Index(IndexOpsMixin[S1]):
179
179
** kwargs ,
180
180
) -> PeriodIndex : ...
181
181
@overload
182
- def __new__ ( # type: ignore[misc ]
182
+ def __new__ ( # type: ignore[overload-overlap ]
183
183
cls ,
184
184
data : Sequence [np .timedelta64 | timedelta ] | IndexOpsMixin [timedelta ],
185
185
* ,
@@ -190,7 +190,7 @@ class Index(IndexOpsMixin[S1]):
190
190
** kwargs ,
191
191
) -> TimedeltaIndex : ...
192
192
@overload
193
- def __new__ ( # type: ignore[misc ]
193
+ def __new__ ( # type: ignore[overload-overlap ]
194
194
cls ,
195
195
data : Iterable ,
196
196
* ,
@@ -201,7 +201,7 @@ class Index(IndexOpsMixin[S1]):
201
201
** kwargs ,
202
202
) -> TimedeltaIndex : ...
203
203
@overload
204
- def __new__ ( # type: ignore[misc ]
204
+ def __new__ ( # type: ignore[overload-overlap ]
205
205
cls ,
206
206
data : Sequence [Interval [_OrderableT ]] | IndexOpsMixin [Interval [_OrderableT ]],
207
207
* ,
@@ -212,7 +212,7 @@ class Index(IndexOpsMixin[S1]):
212
212
** kwargs ,
213
213
) -> IntervalIndex [Interval [_OrderableT ]]: ...
214
214
@overload
215
- def __new__ ( # type: ignore[misc ]
215
+ def __new__ ( # type: ignore[overload-overlap ]
216
216
cls ,
217
217
data : Iterable ,
218
218
* ,
@@ -421,7 +421,7 @@ class Index(IndexOpsMixin[S1]):
421
421
def __gt__ (self , other : Self | S1 ) -> np_ndarray_bool : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
422
422
# overwrite inherited methods from OpsMixin
423
423
@overload
424
- def __mul__ ( # type: ignore[misc ]
424
+ def __mul__ ( # type: ignore[overload-overlap ]
425
425
self : Index [int ] | Index [float ], other : timedelta
426
426
) -> TimedeltaIndex : ...
427
427
@overload
0 commit comments