Skip to content

Commit

Permalink
Fix 3.9 support. Protocol do not support |
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed May 1, 2023
1 parent 556aeea commit bcd32b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pint/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit bcd32b0

Please sign in to comment.