-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
API: Cleaning numpy/__init__.py and main namespace - Part 2 [NEP 52] #24357
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
Merged
rgommers
merged 14 commits into
numpy:main
from
mtsokol:overhaul-of-main-namespace-part-2
Aug 12, 2023
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b1d9c33
API: Start main namespace overhaul
mtsokol 1e1b754
API: Consider sized aliases separately
mtsokol c55bee6
API: Start cleanup of numpy/__init__.py
mtsokol 775b5dd
API: Fix RankWarning typing test
mtsokol 8e60daa
API: Expand star imports [skip ci]
mtsokol 09dad16
Merge branch 'main' into overhaul-of-main-namespace-part-2 [skip ci]
mtsokol 110b953
API: Add next batch of changes [skip ci]
mtsokol 9bbae54
API: Adjust tests after removing star imports
mtsokol f182017
API: Remove comment
mtsokol 7a98ba4
API: Apply review comments
mtsokol 04dd24d
DOC: Adjust constants.rst
mtsokol fd8d333
API: Add remaining public modules to __dir__ and __all__
mtsokol 9227c02
API: Revert Arrayterator imports
mtsokol bfd71f5
API: Reintroduce add_newdoc to np.lib
mtsokol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
API: Expand star imports [skip ci]
- Loading branch information
commit 8e60daa5e6e36ddb90fa5de4b5b1af78f312956f
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,7 +1,6 @@ | ||
import numpy as np | ||
|
||
np.Inf = np.Inf # E: Cannot assign to final | ||
np.ALLOW_THREADS = np.ALLOW_THREADS # E: Cannot assign to final | ||
np.little_endian = np.little_endian # E: Cannot assign to final | ||
np.UFUNC_PYVALS_NAME = "bob" # E: Incompatible types | ||
np.CLIP = 2 # E: Incompatible types |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.