diff --git a/pandas/_typing.py b/pandas/_typing.py index 445eff9e19e47..69b08c581cff9 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -3,8 +3,8 @@ IO, TYPE_CHECKING, AnyStr, + Collection, Dict, - Iterable, List, Optional, TypeVar, @@ -37,8 +37,7 @@ Ordered = Optional[bool] JSONSerializable = Union[Scalar, List, Dict] -# use Collection after we drop support for py35 -Axes = Iterable +Axes = Collection # to maintain type information across generic functions and parametrization _T = TypeVar("_T")