11 ms·
disclaimer: I don't work on big codebases. Pylance with pyright[0] while developing (with strict mode) and mypy[1] with pre-commit and CI. Previously, I had t
by wdroz 2y ago
disclaimer: I don't work on big codebases.
Pylance with pyright[0] while developing (with strict mode) and mypy[1] with pre-commit and CI.
Previously, I had to rely on pyright in pre-commit and CI for a while because mypy didn’t support PEP 695 until its 1.11 release in July.
[0] -- https://github.com/microsoft/pyright https://github.com/microsoft/pyright
[1] -- https://github.com/python/mypy https://github.com/python/mypy
- cbenz 2y agoI would tend to rely on a single tool, do you see advantages to use both? Do you happen to have discrepancies between both? (e.g. an error raised by one and not the other)
- wdroz 2y agoI prefer mypy but sometimes pyright supports new PEPs before mypy, so if you like experimenting with cutting-edge python, you may have to switch time to time.