All apps/mypy

mypy

mypy

Mypy is a static type checker for Python.

Runs as mypy, dmypy|macOS, Linux, Windows|mypy-lang.org

Command form

ai-draft · 2 tasks · 13 fields

Type check Python files or directories with mypy. Report generators, cache tuning and daemon mode are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui mypy
Type checkExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories*
any
TasksEach one presets the form for one job
Check
targets
Strict check
targetsstrict
ParametersOnly these flags are editable in the form
Files or directories
path · positional 0 · repeatable
Enable all optional checks
boolean
--strict
Ignore missing imports
boolean
--ignore-missing-imports
Check bodies of untyped functions
boolean
--check-untyped-defs
Disallow untyped definitions
boolean
--disallow-untyped-defs
Warn about unused # type: ignore
boolean
--warn-unused-ignores
Warn about returning Any
boolean
--warn-return-any
Python version (e.g. 3.12)
string
--python-version
Config file
path
--config-file
Exclude regex
string
--exclude
Pretty error output
boolean
--pretty
Show column numbers
boolean
--show-column-numbers
Disable incremental mode
boolean
--no-incremental
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed mypy against its version. A form that does not match your version is not offered.