Typsht
raw JSON → 0.0.1a5 verified Fri May 01 auth: no python
Typsht is a type checker agnostic parallel type checking tool for Python. It runs type checkers like mypy, pyright, or pyre in parallel across multiple files or projects, speeding up type-checking workflows. Current version is 0.0.1a5 (alpha), with rapid development.
pip install typsht Common errors
error ModuleNotFoundError: No module named 'typsht' ↓
cause Package not installed or installed in a different environment.
fix
Run 'pip install typsht' in the correct Python environment.
error typsht.run() TypeError: run() missing required positional arguments: 'checkers' and 'paths' ↓
cause Missing required arguments.
fix
Call run with both arguments, e.g., typsht.run(['mypy'], paths=['src/']).
Warnings
deprecated The API is unstable and may change without notice in alpha versions. ↓
fix Pin to exact version in requirements.
gotcha Typsht requires Python >=3.10. Using older versions will cause installation failures. ↓
fix Upgrade Python to 3.10 or later.
gotcha The run() function expects a list of type checker names; unknown names may produce confusing errors. ↓
fix Only use supported checkers: 'mypy', 'pyright', 'pyre'.
Imports
- typsht
import typsht
Quickstart
import typsht
# Run type checking on a directory with multiple checkers in parallel
report = typsht.run(['mypy', 'pyright'], paths=['src/'])
print(report)