Zuban is a Python language server and type checker written in Rust, with Mypy-compatible configuration and PyRight-like mode. It provides LSP features for major editors and a zmypy CLI drop-in.
Overview
Zuban is a Python language server and static type checker implemented in Rust by the author of Jedi. It targets professional Python work where analysis speed and memory use matter on large codebases, and ships as both an LSP server and checking tools usable from the command line.
The checker offers a Mypy-compatible mode that accepts the same config files, flags, and error messages as Mypy, plus a PyRight-like mode. It passes over 95% of Mypy’s relevant test suite and documents broad coverage of Python’s type system, including generics, protocols, TypedDict, dataclasses, TypeGuard, and related constructs.
Language server features include diagnostics, completions, go to definition, references, rename, hover, document highlights, incremental checking, file watching, error recovery, and auto-import support. Django support and Python 3.13 are listed among capabilities. Editors such as VS Code, Vim, Neovim, Helix, Sublime Text, Emacs, and Zed can integrate via LSP.
Install via pip after activating a virtual environment so dependencies resolve correctly. Executables include zubanls for the server and zmypy as a Mypy replacement. Multithreading is enabled by default with an environment variable to cap thread count. The project is AGPL-licensed with optional commercial licensing.
Key features
- Mypy-compatible configuration and errors
- LSP diagnostics, completion, and navigation
- Incremental multi-threaded type checking
- zmypy command-line Mypy replacement
- Django-oriented plugin support
- Broad modern Python type system coverage
- File watching with error recovery
- PyRight-like checking mode option
Use cases
- Fast static typing in large Python repos
- Editor integrations via language server protocol
- Replacing Mypy in existing CI workflows
- Django projects needing typed analysis
- Reducing analysis time versus Mypy