We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b76a02 commit 9d67b66Copy full SHA for 9d67b66
pandas/core/arrays/_mixins.py
@@ -1,8 +1,9 @@
1
-from typing import Any, Sequence, Tuple, TypeVar
+from typing import Any, Sequence, TypeVar
2
3
import numpy as np
4
5
from pandas._libs import lib
6
+from pandas._typing import Shape
7
from pandas.compat.numpy import function as nv
8
from pandas.errors import AbstractMethodError
9
from pandas.util._decorators import cache_readonly, doc
@@ -84,7 +85,7 @@ def _validate_fill_value(self, fill_value):
84
85
# TODO: make this a cache_readonly; for that to work we need to remove
86
# the _index_data kludge in libreduction
87
@property
- def shape(self) -> Tuple[int, ...]:
88
+ def shape(self) -> Shape:
89
return self._ndarray.shape
90
91
def __len__(self) -> int:
0 commit comments