Skip to content

Commit 5643c32

Browse files
committed
Fix 3.9 support. TypeAlias is supported in 3.10+
1 parent bcd32b0 commit 5643c32

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pint/util.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from typing import (
2525
TYPE_CHECKING,
2626
ClassVar,
27-
TypeAlias,
2827
Callable,
2928
TypeVar,
3029
Any,
@@ -48,8 +47,12 @@
4847

4948
T = TypeVar("T")
5049
TH = TypeVar("TH", bound=Hashable)
51-
ItMatrix: TypeAlias = Iterable[Iterable[PintScalar]]
52-
Matrix: TypeAlias = list[list[PintScalar]]
50+
51+
# TODO: Change when Python 3.10 becomes minimal version.
52+
# ItMatrix: TypeAlias = Iterable[Iterable[PintScalar]]
53+
# Matrix: TypeAlias = list[list[PintScalar]]
54+
ItMatrix = Iterable[Iterable[PintScalar]]
55+
Matrix = list[list[PintScalar]]
5356

5457

5558
def _noop(x: T) -> T:

0 commit comments

Comments
 (0)