Ruff Author Finds Pretending to Be Mypy Speeds Up Pydantic Type Checking
Charlie Marsh, creator of Ruff and uv, found that setting the MYPY constant makes Pydantic build its heavy type definitions, speeding up type checkers pretending to be Mypy — at the cost of losing type precision.
2026-11-21 ~ 2026-11-21 · 2 related posts
- Pydantic hacks Mypy detection: why type checkers crawl and how to fake your way to speed — charliermarsh · 2026-11-21
- Ruff author warns: setting MYPY speeds up type checking on Pydantic but collapses types to Mapping[str, Any] — charliermarsh · 2026-11-21