Skip to content

Commit

Permalink
Drop pint type-hinting until it is properly supported
Browse files Browse the repository at this point in the history
hgrecco/pint#1166
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Mar 6, 2024
1 parent 61ee0f3 commit 6b7c7a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tmt/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
from typing_extensions import TypeAlias

#: A type of values describing sizes of things like storage or RAM.
Size: TypeAlias = 'Quantity[int]'
# Note, type-hinting is not properly supported in pint
# https://github.com/hgrecco/pint/issues/1166
Size: TypeAlias = Quantity

#: Unit registry, used and shared by all code.
UNITS = pint.UnitRegistry()
Expand Down

0 comments on commit 6b7c7a5

Please sign in to comment.