10BC0 TYP: Type-checking with Pyrefly by jorenham · Pull Request #30729 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@jorenham
Copy link
Member
@jorenham jorenham commented Jan 26, 2026

Currently only mypy type-checks the stubs. But since mypy is rather slow and has several open bugs, it could be to use idea to add type-checker. Pyrefly is still in beta, but I've had good experiences with it in scipy-stubs, and it's significantly faster than mypy. Another important advantage is that, unlike mypy, it has/is an LSP.

The next step will be to also use pyrefly for type-testing, i.e. type-checking the stuff under numpy/typing/tests

@jorenham jorenham added this to the 2.5.0 Release milestone Jan 26, 2026
@jorenham
Copy link
Member Author

cc @MarcoGorelli

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.

1 participant

0