2 ms·
Yeah, agreeing with what you say. mypy --strict is only useful for projects for which everything is defined. I recently did a project with tornado, which is t
by rvanlaar 7y ago
Yeah, agreeing with what you say.
mypy --strict is only useful for projects for which everything is defined.
I recently did a project with tornado, which is typed. Typing helped me immensely. My editor would give me type hints, errors and show me other edge cases.
For an existing Django project I'm adding types when I touch functions. It helps a bit, but way less.
That's also because typing almost forces you to change all the dicts that get's passed around in dataclasses. Which is a lot of work after in an existing project.