2025-09-14 18:48:49 -06:00
|
|
|
# dmypy
|
|
|
|
|
|
|
|
|
|
> Type check Python code, running `mypy` as a daemon for better speed.
|
2026-02-18 06:55:01 -07:00
|
|
|
> See also: `mypy`.
|
2025-09-14 18:48:49 -06:00
|
|
|
> More information: <https://mypy.readthedocs.io/en/stable/mypy_daemon.html>.
|
|
|
|
|
|
|
|
|
|
- Type check a file, and start the daemon if it is not running:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`dmypy run -- {{path/to/file.py}}`
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
- Start the daemon:
|
|
|
|
|
|
|
|
|
|
`dmypy start`
|
|
|
|
|
|
|
|
|
|
- Type check a file (requires the daemon to be running):
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`dmypy check -- {{path/to/file.py}}`
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
- Stop the daemon:
|
|
|
|
|
|
|
|
|
|
`dmypy stop`
|