@@ -13,6 +13,7 @@ from collections.abc import (
1313 Iterator ,
1414 Mapping ,
1515 MutableMapping ,
16+ MutableSequence ,
1617 Sequence ,
1718)
1819import datetime as dt
@@ -507,7 +508,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
507508 self ,
508509 orient : Literal ["index" ],
509510 * ,
510- into : defaultdict ,
511+ into : defaultdict [ Any , Any ] ,
511512 index : Literal [True ] = True ,
512513 ) -> defaultdict [Hashable , dict [Hashable , Any ]]: ...
513514 @overload
@@ -555,7 +556,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
555556 self ,
556557 orient : Literal ["split" , "tight" ],
557558 * ,
558- into : MutableMapping | type [MutableMapping ],
559+ into : MutableMapping [ Any , Any ] | type [MutableMapping ],
559560 index : bool = ...,
560561 ) -> MutableMapping [str , list [Any ]]: ...
561562 @overload
@@ -917,7 +918,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
917918 engine : Literal ["python" , "numexpr" ] | None = ...,
918919 local_dict : dict [_str , Any ] | None = ...,
919920 global_dict : dict [_str , Any ] | None = ...,
920- resolvers : list [Mapping ] | None = ...,
921+ resolvers : MutableSequence [Mapping [ Any , Any ] ] | None = ...,
921922 level : int = ...,
922923 target : object | None = ...,
923924 inplace : Literal [True ],
@@ -932,7 +933,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
932933 engine : Literal ["python" , "numexpr" ] | None = ...,
933934 local_dict : dict [_str , Any ] | None = ...,
934935 global_dict : dict [_str , Any ] | None = ...,
935- resolvers : list [Mapping ] | None = ...,
936+ resolvers : MutableSequence [Mapping [ Any , Any ] ] | None = ...,
936937 level : int = ...,
937938 target : object | None = ...,
938939 ) -> Self : ...
@@ -1032,7 +1033,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
10321033 @overload
10331034 def fillna (
10341035 self ,
1035- value : Scalar | NAType | dict | Series | DataFrame | None = ...,
1036+ value : Scalar | NAType | dict [ Any , Any ] | Series | DataFrame | None = ...,
10361037 * ,
10371038 axis : Axis | None = ...,
10381039 limit : int = ...,
@@ -1042,7 +1043,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
10421043 @overload
10431044 def fillna (
10441045 self ,
1045- value : Scalar | NAType | dict | Series | DataFrame | None = ...,
1046+ value : Scalar | NAType | dict [ Any , Any ] | Series | DataFrame | None = ...,
10461047 * ,
10471048 axis : Axis | None = ...,
10481049 limit : int = ...,
@@ -1725,7 +1726,10 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
17251726 validate : MergeValidate | None = None ,
17261727 ) -> Self : ...
17271728 def round (
1728- self , decimals : int | dict | Series = ..., * args : Any , ** kwargs : Any
1729+ self ,
1730+ decimals : int | dict [Any , Any ] | Series = ...,
1731+ * args : Any ,
1732+ ** kwargs : Any ,
17291733 ) -> Self : ...
17301734 def corr (
17311735 self ,
@@ -2675,7 +2679,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
26752679 compression : CompressionOptions = ...,
26762680 index : _bool | None = ...,
26772681 indent : int | None = ...,
2678- storage_options : dict | None = ...,
2682+ storage_options : dict [ Any , Any ] | None = ...,
26792683 mode : Literal ["a" ],
26802684 ) -> None : ...
26812685 @overload
@@ -2693,7 +2697,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
26932697 compression : CompressionOptions = ...,
26942698 index : _bool | None = ...,
26952699 indent : int | None = ...,
2696- storage_options : dict | None = ...,
2700+ storage_options : dict [ Any , Any ] | None = ...,
26972701 mode : Literal ["a" ],
26982702 ) -> _str : ...
26992703 @overload
@@ -2711,7 +2715,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
27112715 compression : CompressionOptions = ...,
27122716 index : _bool | None = ...,
27132717 indent : int | None = ...,
2714- storage_options : dict | None = ...,
2718+ storage_options : dict [ Any , Any ] | None = ...,
27152719 mode : Literal ["w" ] = ...,
27162720 ) -> _str : ...
27172721 @overload
@@ -2729,7 +2733,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
27292733 compression : CompressionOptions = ...,
27302734 index : _bool | None = ...,
27312735 indent : int | None = ...,
2732- storage_options : dict | None = ...,
2736+ storage_options : dict [ Any , Any ] | None = ...,
27332737 mode : Literal ["w" ] = ...,
27342738 ) -> None : ...
27352739 @overload
0 commit comments