Anyone have any thoughts on choosing one of these?...
# development
b
Anyone have any thoughts on choosing one of these? • https://pypi.org/project/mypy-test/ -- would need to probably add as a plugin to
check
? So probably out. But like that it completely mirrors
mypy
https://github.com/typeddjango/pytest-mypy-plugins -- I don't like the YAML personally • https://github.com/davidfritzsche/pytest-mypy-testing -- Seems easy to integrate, but would there be pitfalls when running with Pants?
h
the last one seems the simplest and best. I don't imagine any pitfalls? it's a pytest plugin like any others
1
b
It's a bummer any of this exists and
mypy
doesn't have some builtin "I expect this type to be XYZ" functionality
1
Looks like option 3 doesn't work with newer versions of pytest just yet 🥴
Honestly it's surprising this isn't better supported by tools. And FWIW the last 2 options run
mypy
in a subprocess which likely isn't ideal