diff options
author | Hernan Grecco <hgrecco@gmail.com> | 2023-05-09 19:45:34 -0300 |
---|---|---|
committer | Hernan Grecco <hgrecco@gmail.com> | 2023-05-09 19:45:34 -0300 |
commit | e5c8b03a02e650134d6139ad38305797a2c962c8 (patch) | |
tree | dd74d796f80994efe3741cc20763cc708f97a447 /pint/facets/plain/quantity.py | |
parent | 10ac784342b2503a4f1b153ba2cbc4be72f75122 (diff) | |
download | pint-e5c8b03a02e650134d6139ad38305797a2c962c8.tar.gz |
Typing related fixes
Diffstat (limited to 'pint/facets/plain/quantity.py')
-rw-r--r-- | pint/facets/plain/quantity.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |