From e5c8b03a02e650134d6139ad38305797a2c962c8 Mon Sep 17 00:00:00 2001 From: Hernan Grecco Date: Tue, 9 May 2023 19:45:34 -0300 Subject: Typing related fixes --- pint/facets/plain/quantity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pint/facets/plain/quantity.py') diff --git a/pint/facets/plain/quantity.py b/pint/facets/plain/quantity.py index 6098edb..2f3de43 100644 --- a/pint/facets/plain/quantity.py +++ b/pint/facets/plain/quantity.py @@ -394,7 +394,7 @@ class PlainQuantity(Generic[MagnitudeT], PrettyIPython, SharedRegistryObject): def from_tuple(cls, tup): return cls(tup[0], cls._REGISTRY.UnitsContainer(tup[1])) - def to_tuple(self) -> tuple[MagnitudeT, tuple[tuple[str]]]: + def to_tuple(self) -> tuple[MagnitudeT, tuple[tuple[str, ...]]]: return self.m, tuple(self._units.items()) def compatible_units(self, *contexts): -- cgit v1.2.1