Skip to content

Commit ac6ede2

Browse files
committed
TYP: use Shape alias in core/indexes/base.py
1 parent f829d02 commit ac6ede2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexes/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from pandas._libs.lib import is_datetime_array, no_default
2727
from pandas._libs.tslibs import IncompatibleFrequency, OutOfBoundsDatetime, Timestamp
2828
from pandas._libs.tslibs.timezones import tz_compare
29-
from pandas._typing import AnyArrayLike, Dtype, DtypeObj, Label
29+
from pandas._typing import AnyArrayLike, Dtype, DtypeObj, Label, Shape
3030
from pandas.compat.numpy import function as nv
3131
from pandas.errors import DuplicateLabelError, InvalidIndexError
3232
from pandas.util._decorators import Appender, cache_readonly, doc
@@ -5533,7 +5533,7 @@ def _maybe_disable_logical_methods(self, opname: str_t):
55335533
make_invalid_op(opname)(self)
55345534

55355535
@property
5536-
def shape(self):
5536+
def shape(self) -> Shape:
55375537
"""
55385538
Return a tuple of the shape of the underlying data.
55395539
"""

0 commit comments

Comments
 (0)