@@ -1926,11 +1926,17 @@ def to_dict(
19261926 self ,
19271927 orient : Literal ["dict" , "list" , "series" , "split" , "tight" , "index" ] = ...,
19281928 into : type [dict ] = ...,
1929+ index : bool = ...,
19291930 ) -> dict :
19301931 ...
19311932
19321933 @overload
1933- def to_dict (self , orient : Literal ["records" ], into : type [dict ] = ...) -> list [dict ]:
1934+ def to_dict (
1935+ self ,
1936+ orient : Literal ["records" ],
1937+ into : type [dict ] = ...,
1938+ index : bool = ...,
1939+ ) -> list [dict ]:
19341940 ...
19351941
19361942 @deprecate_nonkeyword_arguments (
@@ -11297,7 +11303,7 @@ def _reduce_axis1(self, name: str, func, skipna: bool) -> Series:
1129711303 def any ( # type: ignore[override]
1129811304 self ,
1129911305 * ,
11300- axis : Axis = 0 ,
11306+ axis : Axis | None = 0 ,
1130111307 bool_only : bool = False ,
1130211308 skipna : bool = True ,
1130311309 ** kwargs ,
@@ -11312,7 +11318,7 @@ def any( # type: ignore[override]
1131211318 @doc (make_doc ("all" , ndim = 2 ))
1131311319 def all (
1131411320 self ,
11315- axis : Axis = 0 ,
11321+ axis : Axis | None = 0 ,
1131611322 bool_only : bool = False ,
1131711323 skipna : bool = True ,
1131811324 ** kwargs ,
@@ -11711,6 +11717,7 @@ def quantile(
1171111717 axis : Axis = ...,
1171211718 numeric_only : bool = ...,
1171311719 interpolation : QuantileInterpolation = ...,
11720+ method : Literal ["single" , "table" ] = ...,
1171411721 ) -> Series :
1171511722 ...
1171611723
@@ -11721,6 +11728,7 @@ def quantile(
1172111728 axis : Axis = ...,
1172211729 numeric_only : bool = ...,
1172311730 interpolation : QuantileInterpolation = ...,
11731+ method : Literal ["single" , "table" ] = ...,
1172411732 ) -> Series | DataFrame :
1172511733 ...
1172611734
@@ -11731,6 +11739,7 @@ def quantile(
1173111739 axis : Axis = ...,
1173211740 numeric_only : bool = ...,
1173311741 interpolation : QuantileInterpolation = ...,
11742+ method : Literal ["single" , "table" ] = ...,
1173411743 ) -> Series | DataFrame :
1173511744 ...
1173611745
@@ -11830,11 +11839,10 @@ def quantile(
1183011839
1183111840 if not is_list_like (q ):
1183211841 # BlockManager.quantile expects listlike, so we wrap and unwrap here
11833- # error: List item 0 has incompatible type "Union[float, Union[Union[
11834- # ExtensionArray, ndarray[Any, Any]], Index, Series], Sequence[float]]";
11835- # expected "float"
11836- res_df = self .quantile ( # type: ignore[call-overload]
11837- [q ],
11842+ # error: List item 0 has incompatible type "float | ExtensionArray |
11843+ # ndarray[Any, Any] | Index | Series | Sequence[float]"; expected "float"
11844+ res_df = self .quantile (
11845+ [q ], # type: ignore[list-item]
1183811846 axis = axis ,
1183911847 numeric_only = numeric_only ,
1184011848 interpolation = interpolation ,
0 commit comments