Skip to content

Commit 305329e

Browse files
committed
minor changes
1 parent 5e70e01 commit 305329e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pandas/core/frame.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
from pandas._libs import lib, algos as libalgos
2727

28+
from pandas._typing import ArrayLike, Dtype
29+
2830
from pandas.util._decorators import (Appender, Substitution,
2931
rewrite_axis_style_signature,
3032
deprecate_kwarg)
@@ -368,17 +370,17 @@ def _constructor(self) -> Type['DataFrame']:
368370
_accessors = set() # type: Set[str]
369371

370372
@property
371-
def _constructor_expanddim(self) -> None:
373+
def _constructor_expanddim(self):
372374
raise NotImplementedError("Not supported for DataFrames!")
373375

374376
# ----------------------------------------------------------------------
375377
# Constructors
376378

377379
def __init__(self,
378380
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,
382384
copy: bool = False) -> None:
383385
if data is None:
384386
data = {}
@@ -475,7 +477,7 @@ def __init__(self,
475477
# ----------------------------------------------------------------------
476478

477479
@property
478-
def axes(self) -> List[Index]:
480+
def axes(self) -> List[ArrayLike]:
479481
"""
480482
Return a list representing the axes of the DataFrame.
481483

0 commit comments

Comments
 (0)