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