# python: Replace pyright with basedpyright \(\#35362\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/fa0df6da1c2c6ab4394826c035183fdf1804f7e2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: fa0df6da1c2c6ab4394826c035183fdf1804f7e2

Requested commit: fa0df6da1c2c6ab4394826c035183fdf1804f7e2

Commit: fa0df6da1c2c6ab4394826c035183fdf1804f7e2

Tree: ade8993999636ac410deea1bf2e99f3038e89911

Author: Cole Miller

Committer: GitHub

## Message

````
python: Replace pyright with basedpyright (#35362)

Follow-up to #35250. Let's experiment with having this by default on
nightly.

Release Notes:

- Added built-in support for the basedpyright language server for Python
code. basedpyright is now enabled by default, and pyright (previously
the primary Python language server) remains available but is disabled by
default. This supersedes the basedpyright extension, which can be
uninstalled. Advantages of basedpyright over pyright include support for
inlay hints, semantic highlighting, auto-import code actions, and
stricter type checking. To switch back to pyright, add the following
configuration to settings.json:

```json
{
  "languages": {
    "Python": {
      "language_servers": ["pyright", "pylsp", "!basedpyright"]
    }
  }
}
```

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Co-authored-by: Lukas Wirth <lukas@zed.dev>
````

## Parents

- [99102a84fa30b235f6e383b20246a96f5a6a103f](https://git.cafe/gitcafe/zed/commit/99102a84fa30b235f6e383b20246a96f5a6a103f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/fa0df6da1c2c6ab4394826c035183fdf1804f7e2?format=markdown)
