@@ -169,7 +169,9 @@ from pandas._typing import (
169169from pandas .io .formats .style import Styler
170170from pandas .plotting import PlotAccessor
171171
172- _T_MUTABLE_MAPPING = TypeVar ("_T_MUTABLE_MAPPING" , bound = MutableMapping , covariant = True )
172+ _T_MUTABLE_MAPPING_co = TypeVar (
173+ "_T_MUTABLE_MAPPING_co" , bound = MutableMapping , covariant = True
174+ )
173175
174176class _iLocIndexerFrame (_iLocIndexer , Generic [_T ]):
175177 @overload
@@ -463,9 +465,9 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
463465 self ,
464466 orient : Literal ["records" ],
465467 * ,
466- into : _T_MUTABLE_MAPPING | type [_T_MUTABLE_MAPPING ],
468+ into : _T_MUTABLE_MAPPING_co | type [_T_MUTABLE_MAPPING_co ],
467469 index : Literal [True ] = ...,
468- ) -> list [_T_MUTABLE_MAPPING ]: ...
470+ ) -> list [_T_MUTABLE_MAPPING_co ]: ...
469471 @overload
470472 def to_dict (
471473 self ,
@@ -511,9 +513,9 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
511513 self ,
512514 orient : Literal ["dict" , "list" , "series" ] = ...,
513515 * ,
514- into : _T_MUTABLE_MAPPING | type [_T_MUTABLE_MAPPING ],
516+ into : _T_MUTABLE_MAPPING_co | type [_T_MUTABLE_MAPPING_co ],
515517 index : Literal [True ] = ...,
516- ) -> _T_MUTABLE_MAPPING : ...
518+ ) -> _T_MUTABLE_MAPPING_co : ...
517519 @overload
518520 def to_dict (
519521 self ,
@@ -2225,6 +2227,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
22252227 fill_method : None = None ,
22262228 freq : Frequency | dt .timedelta | None = ...,
22272229 fill_value : Scalar | NAType | None = ...,
2230+ axis : Axis | None = ...,
22282231 ) -> Self : ...
22292232 def pop (self , item : _str ) -> Series : ...
22302233 def pow (
0 commit comments