Skip to content
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

Merged
merged 3 commits into from
Oct 13, 2024

Conversation

aladinor
Copy link
Contributor

Copy link
Collaborator

@headtr1ck headtr1ck left a 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!

@@ -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,
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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].

@headtr1ck
Copy link
Collaborator

Feel free to add an entry to whats-new!

@TomNicholas TomNicholas added the topic-DataTree Related to the implementation of a DataTree class label Oct 13, 2024
@TomNicholas TomNicholas added the plan to merge Final call for comments label Oct 13, 2024
@TomNicholas TomNicholas merged commit e407d65 into pydata:main Oct 13, 2024
41 checks passed
@TomNicholas
Copy link
Member

Thanks @aladinor !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments topic-DataTree Related to the implementation of a DataTree class topic-typing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

open_datatree group parameter does not support Iterable[str]
4 participants