Python mypy: Difference between revisions

From wikinotes
No edit summary
No edit summary
 
Line 10: Line 10:
|}
|}
</blockquote><!-- Documentation -->
</blockquote><!-- Documentation -->
= Usage =
<blockquote>
<syntaxhighlight lang="bash">
mypy .        # typecheck all src/tests
mypy file.py  # typecheck file
</syntaxhighlight>
</blockquote><!-- Usage -->

Latest revision as of 17:34, 23 January 2022

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