Skip to content

BUG: Fix duplication of names in 'numpy.__all__'.#20284

Merged
rgommers merged 1 commit intonumpy:mainfrom
WarrenWeckesser:fix-name-dups
Nov 4, 2021
Merged

BUG: Fix duplication of names in 'numpy.__all__'.#20284
rgommers merged 1 commit intonumpy:mainfrom
WarrenWeckesser:fix-name-dups

Conversation

@WarrenWeckesser
Copy link
Copy Markdown
Member

Closes gh-10198.

Copy link
Copy Markdown
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 @WarrenWeckesser


__all__ = ['char', 'rec', 'memmap']
__all__ += numeric.__all__
__all__ += fromnumeric.__all__
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For the record, okay to remove here because it's included via extend_all(fromnumeric) in numpy/core/numeric.py.

@rgommers rgommers merged commit 112e63e into numpy:main Nov 4, 2021
@rgommers rgommers added this to the 1.22.0 release milestone Nov 4, 2021
@WarrenWeckesser WarrenWeckesser deleted the fix-name-dups branch November 4, 2021 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate entries in np.__all__

2 participants