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

ENH: Add annotations for the remaining np.generic aliases #18284

Merged
merged 1 commit into from Feb 1, 2021

Conversation

BvB93
Copy link
Member

@BvB93 BvB93 commented Feb 1, 2021

This PR adds annotations for all remaining np.generic aliases.

A number of aliases were already covered in #17479 and #17843; this PR takes care of most of the last ones (e.g. bool8 = np.bool_).

One thing that's still left to do is better handling of (platform-specific) extended precision np.numbers,
but this is a task beyond the scope of this PR and one that, in all likeliness, will require an update of the mypy plugin.

@charris
Copy link
Member

charris commented Feb 1, 2021

There is also a float96 that I don't see anywhere. It is extended precision (long double) on 32 bit linux platforms.

@charris charris merged commit ac76769 into numpy:master Feb 1, 2021
@charris
Copy link
Member

charris commented Feb 1, 2021

Thanks Bas.

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

2 participants