| name | basedpyright-1-39-8 |
| description | Static type checking for Python via basedpyright — a fork of pyright with stricter defaults, new diagnostic rules, baseline support, pylance features in open-source, and improved CI integration. Use when the user mentions basedpyright, pyright, type checking, static analysis, type stubs, pyrightconfig, or wants to configure/resolve Python type errors.
|
basedpyright 1.39.8
Overview
basedpyright is a fork of pyright that provides stricter defaults, new diagnostic rules, baseline support for incremental adoption, and re-implements Pylance-exclusive features in open-source. It ships as a PyPI package (basedpyright), making it easy to install alongside Python tooling without needing Node.js.
Key differences from upstream pyright:
- Default
typeCheckingMode is "recommended" (all rules enabled as warnings/errors)
- New diagnostic rules:
reportAny, reportExplicitAny, reportInvalidCast, reportUnsafeMultipleInheritance, and more
- Baseline support — adopt strict checks incrementally without fixing all existing errors first
- Built-in GitHub Actions annotations and GitLab code quality reports
- Pylance features (Jupyter, inlay hints, semantic highlighting, import suggestions) available to all LSP clients
enableTypeIgnoreComments disabled by default; prefer # pyright: ignore[rule]
- Defaults
pythonPlatform to "All" instead of the current OS
- Auto-detects
.venv at project root as the Python environment
- Exits with code 3 on invalid configuration (pyright silently ignores bad settings)
Usage
Installation