Skip to content

Commit

Permalink
declare create_template as callable
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Aug 13, 2023
1 parent 894ce2f commit 7df95b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xarray/core/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,7 @@ def _unstack_once(
new_shape = tuple(list(reordered.shape[: len(other_dims)]) + new_dim_sizes)
new_dims = reordered.dims[: len(other_dims)] + new_dim_names

create_template: Callable
if fill_value is dtypes.NA:
is_missing_values = math.prod(new_shape) > math.prod(self.shape)
if is_missing_values:
Expand Down

0 comments on commit 7df95b9

Please sign in to comment.