Skip to content

Commit 9d67b66

Browse files
committed
TYP: use Shape alias in core/arrays/_mixins.py
1 parent 7b76a02 commit 9d67b66

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/arrays/_mixins.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
from typing import Any, Sequence, Tuple, TypeVar
1+
from typing import Any, Sequence, TypeVar
22

33
import numpy as np
44

55
from pandas._libs import lib
6+
from pandas._typing import Shape
67
from pandas.compat.numpy import function as nv
78
from pandas.errors import AbstractMethodError
89
from pandas.util._decorators import cache_readonly, doc
@@ -84,7 +85,7 @@ def _validate_fill_value(self, fill_value):
8485
# TODO: make this a cache_readonly; for that to work we need to remove
8586
# the _index_data kludge in libreduction
8687
@property
87-
def shape(self) -> Tuple[int, ...]:
88+
def shape(self) -> Shape:
8889
return self._ndarray.shape
8990

9091
def __len__(self) -> int:

0 commit comments

Comments
 (0)