Skip to content
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

MAINT: Clean up all module-level dunders #18229

Merged
merged 4 commits into from
Jan 29, 2021
Merged

MAINT: Clean up all module-level dunders #18229

merged 4 commits into from
Jan 29, 2021

Conversation

BvB93
Copy link
Member

@BvB93 BvB93 commented Jan 25, 2021

This PR attempts the clean up the module-level dunders by means of the following two actions:

  • Replacing __all__ with explicit reexports. The use of __all__ is a bit of remnant, one from before I
    was aware of from X import Y as Y . Note that both syntaxes are formally equivalent.
  • Add annotations for a number of, previously missing, dunders such as __version__.

Bas van Beek added 2 commits January 25, 2021 20:44
…__` and `__expired_functions__`

Removing them as their "public" nature is somewhat questionable.
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @BvB93

@rgommers rgommers merged commit f42b5a0 into numpy:master Jan 29, 2021
@BvB93 BvB93 deleted the __all__ branch January 29, 2021 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants