File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 25
25
26
26
from pandas ._libs import lib , algos as libalgos
27
27
28
+ from pandas ._typing import ArrayLike , Dtype
29
+
28
30
from pandas .util ._decorators import (Appender , Substitution ,
29
31
rewrite_axis_style_signature ,
30
32
deprecate_kwarg )
@@ -368,17 +370,17 @@ def _constructor(self) -> Type['DataFrame']:
368
370
_accessors = set () # type: Set[str]
369
371
370
372
@property
371
- def _constructor_expanddim (self ) -> None :
373
+ def _constructor_expanddim (self ):
372
374
raise NotImplementedError ("Not supported for DataFrames!" )
373
375
374
376
# ----------------------------------------------------------------------
375
377
# Constructors
376
378
377
379
def __init__ (self ,
378
380
data = None ,
379
- index : Index = None ,
380
- columns : Index = None ,
381
- dtype = None ,
381
+ index : ArrayLike = None ,
382
+ columns : ArrayLike = None ,
383
+ dtype : Dtype = None ,
382
384
copy : bool = False ) -> None :
383
385
if data is None :
384
386
data = {}
@@ -475,7 +477,7 @@ def __init__(self,
475
477
# ----------------------------------------------------------------------
476
478
477
479
@property
478
- def axes (self ) -> List [Index ]:
480
+ def axes (self ) -> List [ArrayLike ]:
479
481
"""
480
482
Return a list representing the axes of the DataFrame.
481
483
You can’t perform that action at this time.
0 commit comments