-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updating group type annotation for netcdf, hdf5, and zarr open_datatree function #9614
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick PR!
xarray/backends/h5netcdf_.py
Outdated
@@ -465,7 +465,7 @@ def open_datatree( | |||
use_cftime=None, | |||
decode_timedelta=None, | |||
format=None, | |||
group: str | Iterable[str] | Callable | None = None, | |||
group: str | Callable[[], str] | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that really the correct Callable signature? Does Callable actually work at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. However, this is something I will discuss in the next datatree meeting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Callable
was a suggestion I had some time ago, but it also is unsupported right now. So I'd also remove that, and possibly add it back when/if we add support for Iterable[str]
.
Feel free to add an entry to whats-new! |
…pen_datatree function
for more information, see https://pre-commit.ci
Thanks @aladinor ! |
group
parameter does not support Iterable[str] #9597whats-new.rst