Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ENH: update __module__ in numpy.random module #27911

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
merged 1 commit into from
Dec 5, 2024

Conversation

charris
Copy link
Member

@charris charris commented Dec 5, 2024

Backport of #27981.

This is a follow-up PR after #27716. It updates np.random functions and methods' __module__ to numpy.random.

The only items left with incorrect __module__ are cdef classes, as Cython doesn't allows changing it.

List from here: pytorch/pytorch#136559 (comment)

ENH: update `__module__` in `numpy.random` module
@charris charris added 01 - Enhancement 08 - Backport Used to tag backport PRs labels Dec 5, 2024
@charris charris added this to the 2.2.0 release milestone Dec 5, 2024
@charris
Copy link
Member Author

charris commented Dec 5, 2024

This is just to keep mtrand consistent. Not really needed as the other __module__ updates are not backported.

@charris charris merged commit b30a338 into numpy:maintenance/2.2.x Dec 5, 2024
68 checks passed
@charris charris deleted the backport-27891 branch December 5, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - Enhancement 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.