3 ms·
Type hints are a god send in Python if you want to use the language for anything beyond scripting (or single developer code bases). Without type hints you don'
by aswerty 4y ago
Type hints are a god send in Python if you want to use the language for anything beyond scripting (or single developer code bases).
Without type hints you don't realise how crazy your data structures get in Python. Trice nested dictionaries getting passed around, or pandas running wild across your code base, and on it goes. Instead with type hints we now have insight and can have meaningful discussions on the data structures flowing through our system.
Our team is yet to adopt mypy into our build systems, but hopefully we will introduce it soon.