Skip to content

misc.special type stubs - #10701

Merged
swap357 merged 1 commit into
numba:mainfrom
jorenham:typing/misc.special
Aug 13, 2026
Merged

swap357 merged 1 commit into
numba:mainfrom
jorenham:typing/misc.special

Conversation

@jorenham

@jorenham jorenham commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

This adds type stubs for numba.misc.special, which includes numba.prange and therefore fixes #10680.
I've updated the stubtest allowlist so that stubtest accordingly.

Note that #10651 also adds stubs for misc.special, but it did not update the stubtest allowlist, and the stubs are therefore not verified by stubtest (if it would, stubtest would report several errors). The custom stubs for prange and pndindex it adds are also unnecessary, and results in lower-quality type hints, because those stubs aren't as precise as the originals that I've re-exported here.

@jorenham
jorenham force-pushed the typing/misc.special branch from fadb7da to d978b4e Compare July 13, 2026 09:59
@jorenham

Copy link
Copy Markdown
Contributor Author

ready for review

@mroeschke

Copy link
Copy Markdown

Just wanted to thanks @jorenham! Your work is allowing us to remove a stale numba.pyi file we've been using in pandas

@swap357 swap357 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm! Thank you

@swap357
swap357 merged commit ab13490 into numba:main Aug 13, 2026
25 of 26 checks passed
@jorenham
jorenham deleted the typing/misc.special branch August 13, 2026 08:54
@swap357 swap357 added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge skip_release_notes Skip towncrier requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mypy errors for prange

3 participants