Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause committed Feb 10, 2025
1 parent 0104039 commit a23fb44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xarray/core/datatree_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def map_over_datasets(
for path, outputs in out_data_tuples.items():
# duplicate outputs when func was not called (empty nodes)
if not func_called[path]:
outputs = tuple(outputs.copy() for _ in range(num_return_values))
out = cast(Dataset, outputs)
outputs = tuple(out.copy() for _ in range(num_return_values))

for output_dict, output in zip(output_dicts, outputs, strict=False):
output_dict[path] = output
Expand Down

0 comments on commit a23fb44

Please sign in to comment.