Skip to content

Commit 8df36d3

Browse files
committed
Fix pint subclassing
1 parent ddd6511 commit 8df36d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/tests/test_units.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class PintInfo(UnitInfo):
8080
incompatible_unit = unit_registry.s
8181
dimensionless = unit_registry.dimensionless
8282

83-
unit_type = pint.Unit
84-
quantity_type = pint.Quantity
83+
unit_type = unit_registry.Unit
84+
quantity_type = unit_registry.Quantity
8585

8686
@staticmethod
8787
def strip_units(quantity):

0 commit comments

Comments
 (0)