Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@charris
Copy link
Member

@charris charris commented Sep 22, 2025

Backport of #29629.

ported from numpy/numtype#692


Long story short; this is why:

>>> np.int8.__init__.__qualname__
'object.__init__'
>>> np.int8.__new__.__qualname__
'int8.__new__'

@charris charris added this to the 2.3.4 release milestone Sep 22, 2025
@charris charris added 08 - Backport Used to tag backport PRs 41 - Static typing numtype Isssue/PR related to numpy/numtype labels Sep 22, 2025
@github-actions
Copy link

Diff from mypy_primer, showing the effect of this PR on type check results on a corpus of open source code:

xarray (https://github.com/pydata/xarray)
+ xarray/namedarray/dtypes.py: note: In function "maybe_promote":
+ xarray/namedarray/dtypes.py:86: error: Too many arguments for "generic"  [call-arg]

@charris charris merged commit d0f2030 into numpy:maintenance/2.3.x Sep 23, 2025
77 checks passed
@charris charris deleted the backport-29629 branch September 23, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

08 - Backport Used to tag backport PRs 41 - Static typing numtype Isssue/PR related to numpy/numtype

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants