Python mypy: Difference between revisions

From wikinotes
(Created page with "mypy is a static type checking module for python-3 = Documentation = <blockquote> {| class="wikitable" |- | official docs || https://mypy.readthedocs.io/en/stable/ |- |} </bl...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
mypy is a static type checking module for python-3
mypy is a static type checking module for python-3.<br>
it is built overtop of the builtin [[python typing]] module.


= Documentation =
= Documentation =
Line 9: 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