Skip to content

Conversation

jorenham
Copy link
Member

partial port of numpy/numtype#200

@jorenham jorenham added 09 - Backport-Candidate PRs tagged should be backported 41 - Static typing numtype Isssue/PR related to numpy/numtype labels Mar 14, 2025
Copy link

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

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/arrays/datetimes.py:819: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/core/arrays/_mixins.py:156: error: Unused "type: ignore" comment  [unused-ignore]
- pandas/io/sas/sas_xport.py:245: error: Incompatible types in assignment (expression has type "ndarray[tuple[int, ...], dtype[Any]]", variable has type "ndarray[tuple[int], dtype[Any]]")  [assignment]

@charris charris merged commit 2785b94 into numpy:main Mar 14, 2025
75 checks passed
@charris
Copy link
Member

charris commented Mar 14, 2025

Thanks Joren.

@jorenham jorenham deleted the numtype/200 branch March 14, 2025 20:05
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 14, 2025
charris added a commit that referenced this pull request Mar 15, 2025
…28521)

* TYP: stub ``numpy._core.umath``

Backport of numpy/numtype#123

* TYP: fix typing errors in ``numpy.lib._arrayterator_impl``

Ported from numpy/numtype#165

* TYP: fix signatures of ``ndarray.put`` and ``ndarray.view``

partial port of numpy/numtype#200

* TYP: fix typing errors in ``_core.fromnumeric``

Partial port of numpy/numtype#221

* TYP: fix typing errors in ``_core.function_base``

Partial port of numpy/numtype#221

* TYP: add missing implicit re-exports in ``_core.numeric``

Partial port of numpy/numtype#221

* STY: fix `E203` flake8 error

---------

Co-authored-by: jorenham <jhammudoglu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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