Skip to content

Commit 5975ec5

Browse files
committed
comments and a marker about the deprecation
1 parent 06c38c4 commit 5975ec5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pint_xarray/index.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,15 @@ def equals(self, other, *, exclude=None):
7777
if not isinstance(other, PintIndex):
7878
return False
7979

80-
# for now we require exactly matching units to avoid the potentially expensive conversion
80+
# for now we require exactly matching units to avoid the potentially
81+
# expensive conversion
8182
if self.units != other.units:
8283
return False
8384

85+
# TODO:
86+
# - remove try-except once we can drop xarray<2025.06.0
87+
# - remove compat once we can require a version of xarray that completed
88+
# the deprecation cycle
8489
try:
8590
from xarray.core.indexes import _wrap_index_equals
8691

0 commit comments

Comments
 (0)