Type hinting in Python 2
<p>In <a href="https://www.python.org/dev/peps/pep-0484/" rel="noreferrer">PEP 484</a>, type hinting was added to Python 3 with the inclusion of the <a href="https://docs.python.org/3/library/typing.html" rel="noreferrer"><code>typing</code></a> module. Is there any way to do this in Python 2? All I can think of is having a decorator to add to methods to check types, but this would fail at runtime and not be caught earlier like the hinting would allow.</p>