File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1111 from pandas .core .arrays .base import ExtensionArray # noqa: F401
1212 from pandas .core .dtypes .dtypes import ExtensionDtype # noqa: F401
1313 from pandas .core .indexes .base import Index # noqa: F401
14- from pandas .core .frame import DataFrame # noqa: F401
1514 from pandas .core .series import Series # noqa: F401
1615 from pandas .core .sparse .series import SparseSeries # noqa: F401
16+ from pandas .core .generic import NDFrame # noqa: F401
1717
1818
1919AnyArrayLike = TypeVar (
2424Dtype = Union [str , np .dtype , "ExtensionDtype" ]
2525FilePathOrBuffer = Union [str , Path , IO [AnyStr ]]
2626
27- FrameOrSeries = TypeVar ("FrameOrSeries" , "Series" , "DataFrame " )
27+ FrameOrSeries = TypeVar ("FrameOrSeries" , bound = "NDFrame " )
2828Scalar = Union [str , int , float ]
2929Axis = Union [str , int ]
3030Ordered = Optional [bool ]
31+
32+ # to maintain type information across generic functions and parametrization
33+ _T = TypeVar ("_T" )
You can’t perform that action at this time.
0 commit comments