forked from ramonhagenaars/nptyping
-
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.
Grant basic compatibility with numpy2.0.0
This commit includes the results of running `ruff check --select NPY201 --fix` on the code in this repo, plus the removal of `np.{dtype}0` aliases that currently aren't caught by the NPY201 ruff rule (see numpy/numpy#26800 where this is mentioned) plus removing the `numpy<2.0.0` pin from `requirements.txt`. After this commit, `import nptyping` succeeds in an environment with `numpy==2.0.0`. No additional testing has been done at this time, and additional changes could very well be necessary before nptyping is fully compatible with numpy2.0.0. But this should be a start!
- Loading branch information
1 parent
785cd07
commit efc78eb
Showing
5 changed files
with
20 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
numpy==1.21.5; python_version<'3.8' | ||
numpy>=1.20.0,<2.0.0; python_version>='3.8' | ||
numpy>=1.20.0; python_version>='3.8' | ||
typing_extensions>=4.0.0,<5.0.0; python_version<'3.10' |
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