Skip to content

Commit

Permalink
Update formatting.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Apr 12, 2024
1 parent 2860594 commit 06974a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def summarize_variable(
is_index: bool = False,
) -> str:
"""Summarize a variable in one line, e.g., for the Dataset.__repr__."""
from xarray.core import DataArray
from xarray.core.dataarray import DataArray

variable = var.variable if isinstance(var, DataArray) else var

Expand Down

0 comments on commit 06974a0

Please sign in to comment.