Skip to content

Commit

Permalink
fix pytype error
Browse files Browse the repository at this point in the history
  • Loading branch information
shoyer committed Oct 15, 2024
1 parent bde843c commit 23da8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/core/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,9 +1074,9 @@ def diff_datatree_repr(a: DataTree, b: DataTree, compat):

# If the trees structures are different there is no point comparing each node
# TODO we could show any differences in nodes up to the first place that structure differs?
if treestructure_diff is not None or compat == "isomorphic":
if treestructure_diff is not None:
summary.append("\n" + treestructure_diff)
else:
elif compat != "isomorphic":
nodewise_diff = diff_nodewise_summary(a, b, compat)
summary.append("\n" + nodewise_diff)

Expand Down

0 comments on commit 23da8ca

Please sign in to comment.