@@ -190,7 +190,7 @@ class _LocIndexerFrame(_LocIndexer):
190
190
),
191
191
) -> DataFrame : ...
192
192
@overload
193
- def __getitem__ ( # pyright: ignore[reportOverlappingOverload]
193
+ def __getitem__ ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
194
194
self ,
195
195
idx : tuple [
196
196
int | StrLike | tuple [Scalar , ...] | Callable [[DataFrame ], ScalarT ],
@@ -307,7 +307,7 @@ class DataFrame(NDFrame, OpsMixin):
307
307
na_value : Scalar = ...,
308
308
) -> np .ndarray : ...
309
309
@overload
310
- def to_dict ( # type: ignore[overload-overlap]
310
+ def to_dict (
311
311
self ,
312
312
orient : Literal ["records" ],
313
313
* ,
@@ -323,31 +323,31 @@ class DataFrame(NDFrame, OpsMixin):
323
323
index : Literal [True ] = ...,
324
324
) -> list [dict [Hashable , Any ]]: ...
325
325
@overload
326
- def to_dict ( # type: ignore[overload-overlap]
326
+ def to_dict (
327
327
self ,
328
328
orient : Literal ["dict" , "list" , "series" , "index" ],
329
329
* ,
330
330
into : MutableMapping | type [MutableMapping ],
331
331
index : Literal [True ] = ...,
332
332
) -> MutableMapping [Hashable , Any ]: ...
333
333
@overload
334
- def to_dict ( # type: ignore[overload-overlap]
334
+ def to_dict (
335
335
self ,
336
336
orient : Literal ["split" , "tight" ],
337
337
* ,
338
338
into : MutableMapping | type [MutableMapping ],
339
339
index : bool = ...,
340
340
) -> MutableMapping [Hashable , Any ]: ...
341
341
@overload
342
- def to_dict ( # type: ignore[overload-overlap]
342
+ def to_dict (
343
343
self ,
344
344
orient : Literal ["dict" , "list" , "series" , "index" ] = ...,
345
345
* ,
346
346
into : MutableMapping | type [MutableMapping ],
347
347
index : Literal [True ] = ...,
348
348
) -> MutableMapping [Hashable , Any ]: ...
349
349
@overload
350
- def to_dict ( # type: ignore[overload-overlap]
350
+ def to_dict (
351
351
self ,
352
352
orient : Literal ["split" , "tight" ] = ...,
353
353
* ,
@@ -605,7 +605,9 @@ class DataFrame(NDFrame, OpsMixin):
605
605
@overload
606
606
def __getitem__ (self , key : Scalar | tuple [Hashable , ...]) -> Series : ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
607
607
@overload
608
- def __getitem__ (self , key : Iterable [Hashable ] | slice ) -> DataFrame : ...
608
+ def __getitem__ ( # pyright: ignore[reportOverlappingOverload]
609
+ self , key : Iterable [Hashable ] | slice
610
+ ) -> DataFrame : ...
609
611
@overload
610
612
def __getitem__ (self , key : Hashable ) -> Series : ...
611
613
def isetitem (
@@ -1193,7 +1195,7 @@ class DataFrame(NDFrame, OpsMixin):
1193
1195
) -> DataFrame : ...
1194
1196
def diff (self , periods : int = ..., axis : Axis = ...) -> DataFrame : ...
1195
1197
@overload
1196
- def agg ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
1198
+ def agg ( # pyright: ignore[reportOverlappingOverload]
1197
1199
self , func : AggFuncTypeBase | AggFuncTypeDictSeries , axis : Axis = ..., ** kwargs
1198
1200
) -> Series : ...
1199
1201
@overload
@@ -1204,7 +1206,7 @@ class DataFrame(NDFrame, OpsMixin):
1204
1206
** kwargs ,
1205
1207
) -> DataFrame : ...
1206
1208
@overload
1207
- def aggregate ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
1209
+ def aggregate ( # pyright: ignore[reportOverlappingOverload]
1208
1210
self , func : AggFuncTypeBase | AggFuncTypeDictSeries , axis : Axis = ..., ** kwargs
1209
1211
) -> Series : ...
1210
1212
@overload
0 commit comments