diff options
author | Hernan Grecco <hgrecco@gmail.com> | 2023-05-05 03:43:28 -0300 |
---|---|---|
committer | Hernan Grecco <hgrecco@gmail.com> | 2023-05-05 03:43:28 -0300 |
commit | 02da7d45c801fc3c34d44c675da90a3d5b422280 (patch) | |
tree | 15966c5e4ec150a800d15eaaa22a672d1363b3aa | |
parent | 0b69ad47b2069e29ba48eb64b30093d53da163d6 (diff) | |
download | pint-02da7d45c801fc3c34d44c675da90a3d5b422280.tar.gz |
Fixed Subscripted generics cannot be used with class and instance checks
-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 0058549..6098edb 100644 --- a/pint/facets/plain/quantity.py +++ b/pint/facets/plain/quantity.py @@ -432,7 +432,7 @@ class PlainQuantity(Generic[MagnitudeT], PrettyIPython, SharedRegistryObject): except DimensionalityError: return False - if isinstance(other, (PlainQuantity[MagnitudeT], PlainUnit)): + if isinstance(other, (PlainQuantity, PlainUnit)): return self.dimensionality == other.dimensionality if isinstance(other, str): |