From 06974a0042ef0412b8e36265d97175ae799f9b98 Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Sat, 13 Apr 2024 01:09:53 +0200 Subject: [PATCH] Update formatting.py --- xarray/core/formatting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/core/formatting.py b/xarray/core/formatting.py index 70a095dc00d..7e74fe2953a 100644 --- a/xarray/core/formatting.py +++ b/xarray/core/formatting.py @@ -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