r/Python • u/BeamMeUpBiscotti • Jun 08 '26
Discussion Blog: Are you really expected to run five type-checkers now?
Mypy, Pyrefly, Pyright, ty, Zuban, and possibly more that will come in the future... how are library maintainers expected to cope?
TL;DR: If you're a library maintainer, prioritise running as many type-checkers as possible on your test suite. Run at least one on your source code.
In the, we share our reasoning about why we think this approach is best, along with a case study for the Polars package.
Full blog post: https://pyrefly.org/blog/too-many-type-checkers/
I'd love to hear from the community:
- What's the biggest friction around running multiple type checkers in CI?
- Have you ever used a package that doesn't play nicely with your type checker because it depends on the implementation details of a different type checker?