Back to Ansible

mypy

docs/docsite/rst/dev_guide/testing/sanity/mypy.rst

2.21.0b3435 B
Original Source

mypy

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

  • 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/>_