Skip to content

Commit 98063d0

Browse files
committed
TYP: use Shape alias in core/arrays/base.py
1 parent 9d67b66 commit 98063d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import numpy as np
1313

1414
from pandas._libs import lib
15-
from pandas._typing import ArrayLike
15+
from pandas._typing import ArrayLike, Shape
1616
from pandas.compat import set_function_name
1717
from pandas.compat.numpy import function as nv
1818
from pandas.errors import AbstractMethodError
@@ -403,7 +403,7 @@ def dtype(self) -> ExtensionDtype:
403403
raise AbstractMethodError(self)
404404

405405
@property
406-
def shape(self) -> Tuple[int, ...]:
406+
def shape(self) -> Shape:
407407
"""
408408
Return a tuple of the array dimensions.
409409
"""

0 commit comments

Comments
 (0)