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

remove the generic "nbit" parameter from the number scalar types #411

Open
jorenham opened this issue Mar 26, 2025 · 0 comments
Open

remove the generic "nbit" parameter from the number scalar types #411

jorenham opened this issue Mar 26, 2025 · 0 comments
Assignees
Labels
is: Breaking Backwards incompatible numpy.generic

Comments

@jorenham
Copy link
Member

jorenham commented Mar 26, 2025

Since #136, the generic "nbit" parameter has no use anymore for the these abstract scalar types. This type parameter is only still used in _numtype to shorten type-alias definitions.

From a type-theoretical perspective, this type parameter is invalid: It does not describe anything (yet is invariant), and should therefore be removed.

Since NumPy 2.2 it is no longer a required type parameter, so that should make the transition less painful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: Breaking Backwards incompatible numpy.generic
Projects
None yet
Development

No branches or pull requests

1 participant