Want to add type annotation to a variable? Do refactoring!
Posted on Thu, 06 Oct 2016 in Python • Tagged with python, type hinting
There is the PEP 526 implemented in Python 3.6 that adds optional type annotations for variables. It's replacement for type comments. There is one pitfall: adding type annotations for local variables can hide problems with code.
Continue reading