diff --git a/pint/_typing.py b/pint/_typing.py index 5547f85b5..65e355cf1 100644 --- a/pint/_typing.py +++ b/pint/_typing.py @@ -48,8 +48,9 @@ def __setitem__(self, key: Any, value: Any) -> None: ... -Magnitude = PintScalar | PintScalar - +# TODO: Change when Python 3.10 becomes minimal version. +# Magnitude = PintScalar | PintArray +Magnitude = Union[PintScalar, PintArray] UnitLike = Union[str, "UnitsContainer", "Unit"]