map_over_datasets - What is the required output of func? #10053
Labels
needs triage
Issue that has not been reviewed by xarray team member
topic-DataTree
Related to the implementation of a DataTree class
What is your issue?
The introductory text and type hints seems to match:
xarray/xarray/core/datatree_mapping.py
Line 45 in 4bbab48
xarray/xarray/core/datatree_mapping.py
Lines 58 to 62 in 4bbab48
But the parameter doc is more restrictive:
xarray/xarray/core/datatree_mapping.py
Lines 75 to 80 in 4bbab48
Some examples showing the different return types would be nice as well. I understand the use case of
func: Callable[..., Dataset]
, but I struggle with the other return types.The text was updated successfully, but these errors were encountered: