From 844b27d968fc13f03c1ff29fea9cd2779efce0ed Mon Sep 17 00:00:00 2001 From: "luna.cesari" Date: Mon, 4 Mar 2024 17:58:04 +0100 Subject: [PATCH] Change Unit annotation --- pint/facets/plain/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pint/facets/plain/registry.py b/pint/facets/plain/registry.py index 2e5128fd8..a87e0d4ff 100644 --- a/pint/facets/plain/registry.py +++ b/pint/facets/plain/registry.py @@ -364,7 +364,7 @@ def __deepcopy__(self: Self, memo) -> type[Self]: new._init_dynamic_classes() return new - def __getattr__(self, item: str) -> QuantityT: + def __getattr__(self, item: str) -> UnitT: getattr_maybe_raise(self, item) # self.Unit will call parse_units