Python mypy

From wikinotes
Revision as of 17:34, 23 January 2022 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

mypy is a static type checking module for python-3.
it is built overtop of the builtin python typing module.

Documentation

official docs https://mypy.readthedocs.io/en/stable/

Usage

mypy .        # typecheck all src/tests
mypy file.py  # typecheck file