File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11
11
from pandas .core .arrays .base import ExtensionArray # noqa: F401
12
12
from pandas .core .dtypes .dtypes import ExtensionDtype # noqa: F401
13
13
from pandas .core .indexes .base import Index # noqa: F401
14
- from pandas .core .frame import DataFrame # noqa: F401
15
14
from pandas .core .series import Series # noqa: F401
16
15
from pandas .core .sparse .series import SparseSeries # noqa: F401
16
+ from pandas .core .generic import NDFrame # noqa: F401
17
17
18
18
19
19
AnyArrayLike = TypeVar (
24
24
Dtype = Union [str , np .dtype , "ExtensionDtype" ]
25
25
FilePathOrBuffer = Union [str , Path , IO [AnyStr ]]
26
26
27
- FrameOrSeries = TypeVar ("FrameOrSeries" , "Series" , "DataFrame " )
27
+ FrameOrSeries = TypeVar ("FrameOrSeries" , bound = "NDFrame " )
28
28
Scalar = Union [str , int , float ]
29
29
Axis = Union [str , int ]
30
30
Ordered = 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