You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve typehints of xr.Dataset.__getitem__ (#4144)
* Improve typehints of xr.Dataset.__getitem__
Resolves#4125
* Add overload for Mapping behavior
Sadly this is not working with my version of mypy. See python/mypy#7328
* Overload only Hashable inputs
Given mypy's use of overloads, I think this is all we can do. If the argument is not Hashable, then return the Union type as before.
* Lint
* Quote the DataArray to avoid error in py3.6
* Code review
Co-authored-by: crusaderky <[email protected]>
0 commit comments