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]}} {{module_name}}

mypy {{[-p|--package]}} {{package_name}}

mypy {{[-c|--command]}} "{{code}}"

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

mypy {{[--tb|--show-traceback]}} {{path/to/file_or_directory}}

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

mypy {{[-h|--help]}}