forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid a couple of warnings in
polyfit
(pydata#8939)
* use `numpy.finfo` instead of `numpy.core.finfo` * add `copy` to the signature of `__array__` * don't pass `copy` to `asarray` The `copy` kwarg appears to only exist in `numpy>=2`. * try making the typing the same for all overloads * change the typing for `NamedArray.__array__` * fix the signature of `__array__` * revert the change to the signature of `__array__` * ignore all deprecation warnings about `__array__` gaining a new kwarg I don't know enough about typing to ignore typing issues within a protocol, so that was the only way I could figure out how to get this PR unstuck. Once we know what to do here, we can remove the ignore in a new PR. * add back the `copy` kwarg if the protocol does not have type hints * Update xarray/core/dataset.py --------- Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters