Skip to content

Commit 8d23032

Browse files
committed
use .attrs to avoid passing None
1 parent 8fedd84 commit 8d23032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/variable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ def reduce(
17891789
keep_attrs = "override" if keep_attrs else "drop"
17901790

17911791
attrs = merge_attrs(
1792-
[self._attrs], combine_attrs=keep_attrs, context=Context(func.__name__)
1792+
[self.attrs], combine_attrs=keep_attrs, context=Context(func.__name__)
17931793
)
17941794

17951795
return Variable(dims, data, attrs=attrs)

0 commit comments

Comments
 (0)