5 ms·
Lately I've been doing a lot of greenfield development in Python, developing libs for in house use at my employer. We're using 3.7 currently, and I've fully em
by hermitdev 7y ago
Lately I've been doing a lot of greenfield development in Python, developing libs for in house use at my employer. We're using 3.7 currently, and I've fully embraced type hints. With proper type hints and use of pylint, you get the static checking that you'd otherwise miss. Bonus, if you're using an IDE like PyCharm, VS code or visual studio, you usually get the linting for free either as you type or on save.
- AtHeartEngineer 7y agoI very much agree. Type hinting for everything into and out of a function, and you're in pretty good shape.
- lozenge 7y agoPylint is not designed to be a thorough type checker, you should take a look at mypy or pytype.