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

Missing return type annotations #4238

Closed
eric-czech opened this issue Jul 18, 2020 · 1 comment · Fixed by #4346
Closed

Missing return type annotations #4238

eric-czech opened this issue Jul 18, 2020 · 1 comment · Fixed by #4346

Comments

@eric-czech
Copy link

Dataset.to_dataframe should have a return type hint like DataArray.to_dataframe.

Similarly, can concat have a Union[Dataset, DataArray] return type or is it more complicated than that?

@shoyer
Copy link
Member

shoyer commented Jul 19, 2020

Yes, this would be very welcome!

In theory concat might be able to use @overload to indicate a more precise type, but Union[Dataset, DataArray] would be a good start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants