Mypy#
With Mypy you can do a static type check.
See also
Installation#
Mypy requires Python≥3.5. Then it can be installed, for example with:
$ pipenv install mypy
Check#
Then you can check it, for example with:
$ pipenv run mypy myprogram.py
Note
Although Mypy needs to be installed with Python3, it can also parse Python2 code, for example with:
$ pipenv run mypy --py2 myprogram.py