Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk authored May 5, 2024
1 parent ebf9fed commit f6fed86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xarray/core/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ def as_compatible_data(
Finally, wrap it up with an adapter if necessary.
"""
ndim = getattr(data, "ndim", None)
if fastpath and ndim is not None:
if fastpath and getattr(data, "ndim", None) is not None:
return cast("T_DuckArray", data)

from xarray.core.dataarray import DataArray
Expand Down

0 comments on commit f6fed86

Please sign in to comment.