diff --git a/pandas/_typing.py b/pandas/_typing.py index 9b957ab4d0686..f03b3c9eaf65a 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -91,7 +91,7 @@ Suffixes = Tuple[str, str] Ordered = Optional[bool] JSONSerializable = Optional[Union[PythonScalar, List, Dict]] -Axes = Collection +Axes = Collection[Any] # dtypes NpDtype = Union[str, np.dtype] diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py index 6adb4984d156e..227c1139c2967 100644 --- a/pandas/core/dtypes/base.py +++ b/pandas/core/dtypes/base.py @@ -139,7 +139,7 @@ def na_value(self) -> object: return np.nan @property - def type(self) -> Type: + def type(self) -> Type[Any]: """ The scalar type for the array, e.g. ``int``