From f2c52a4acbcf6d895c7d54ecfaf2f2b76ade8925 Mon Sep 17 00:00:00 2001 From: Irv Lustig Date: Sat, 23 Jan 2021 11:33:23 -0500 Subject: [PATCH] small typing fixes --- pandas/_typing.py | 2 +- pandas/core/dtypes/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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``