Optional static typing for Python with powerful type system and gradual typing support
—
High-performance daemon mode for faster incremental type checking in development environments. The dmypy daemon provides significant performance improvements for repeated type checking of large codebases.
# Available through dmypy command-line tool
# Start daemon: dmypy daemon
# Check files: dmypy check [files...]
# Stop daemon: dmypy stop
# Restart daemon: dmypy restart
# Get status: dmypy statusfrom mypy import api
# Use daemon through programmatic API (not thread-safe)
result = api.run_dmypy(['check', 'myfile.py'])
stdout, stderr, exit_code = result
# Daemon management
api.run_dmypy(['daemon']) # Start daemon
api.run_dmypy(['stop']) # Stop daemonFor detailed daemon usage patterns, see Command Line Tools and Programmatic API documentation.
Install with Tessl CLI
npx tessl i tessl/pypi-mypy