Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Python 2 and also in Python 3.4 and earlier, you get Callable, Tuple, and the rest from the `typing` module on PyPI: https://pypi.python.org/pypi/typing

This is a direct backport of the same `typing` module that's in the stdlib starting in Python 3.5.

(I'm one of the mypy core developers and work at Dropbox. We're using PEP 484 and mypy on a lot of Python 2 code!)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: