mypy Command Examples

Type check Python code. More information: https://mypy.readthedocs.io/en/stable/running_mypy.html.

mypy {{path/to/file.py}}

mypy -m {{module_name}}

mypy -p {{package_name}}

mypy -c "{{code}}"

mypy --ignore-missing-imports {{path/to/file_or_directory}}

mypy --show-traceback {{path/to/file_or_directory}}

mypy --config-file {{path/to/config_file}}

mypy -h