Skip to content

Commit f6fed86

Browse files
authored
nit
1 parent ebf9fed commit f6fed86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xarray/core/variable.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ def as_compatible_data(
269269
270270
Finally, wrap it up with an adapter if necessary.
271271
"""
272-
ndim = getattr(data, "ndim", None)
273-
if fastpath and ndim is not None:
272+
if fastpath and getattr(data, "ndim", None) is not None:
274273
return cast("T_DuckArray", data)
275274

276275
from xarray.core.dataarray import DataArray

0 commit comments

Comments
 (0)