a tumblelog
27 Dec 2019

Python Type Hints

mypy is a static type checker. This means it does not run during the code execution, so it’s mostly useful during development, much like tests. It relies on manual annotations in the code called type hints, which identify the types of arguments, return types, internal variables and member variables.

Source: Python Type Hints, an article by Guilherme Kunigami.