summaryrefslogtreecommitdiffstats
path: root/docs/docsite/rst/dev_guide/testing/sanity/mypy.rst
blob: 9eb46bafca89614183adaa1a393b60665a8423e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mypy
====

The ``mypy`` static type checker is used to check the following code against each Python version supported by the controller:

 * ``lib/ansible/``
 * ``test/lib/ansible_test/_internal/``

Additionally, the following code is checked against Python versions supported only on managed nodes:

 * ``lib/ansible/modules/``
 * ``lib/ansible/module_utils/``

See `the mypy documentation <https://mypy.readthedocs.io/en/stable/>`_