File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
import numpy as np
18
18
19
19
from pandas ._libs import internals as libinternals , lib
20
- from pandas ._typing import ArrayLike , DtypeObj , Label
20
+ from pandas ._typing import ArrayLike , DtypeObj , Label , Shape
21
21
from pandas .util ._validators import validate_bool_kwarg
22
22
23
23
from pandas .core .dtypes .cast import (
@@ -204,7 +204,7 @@ def __nonzero__(self) -> bool:
204
204
__bool__ = __nonzero__
205
205
206
206
@property
207
- def shape (self ) -> Tuple [ int , ...] :
207
+ def shape (self ) -> Shape :
208
208
return tuple (len (ax ) for ax in self .axes )
209
209
210
210
@property
@@ -1825,7 +1825,7 @@ def _asarray_compat(x):
1825
1825
else :
1826
1826
return np .asarray (x )
1827
1827
1828
- def _shape_compat (x ):
1828
+ def _shape_compat (x ) -> Shape :
1829
1829
if isinstance (x , ABCSeries ):
1830
1830
return (len (x ),)
1831
1831
else :
You can’t perform that action at this time.
0 commit comments