summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHernan Grecco <hgrecco@gmail.com>2023-05-05 03:43:28 -0300
committerHernan Grecco <hgrecco@gmail.com>2023-05-05 03:43:28 -0300
commit02da7d45c801fc3c34d44c675da90a3d5b422280 (patch)
tree15966c5e4ec150a800d15eaaa22a672d1363b3aa
parent0b69ad47b2069e29ba48eb64b30093d53da163d6 (diff)
downloadpint-02da7d45c801fc3c34d44c675da90a3d5b422280.tar.gz
Fixed Subscripted generics cannot be used with class and instance checks
-rw-r--r--pint/facets/plain/quantity.py2
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):