Several Issues with Cursor Pyright

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I made a similar issue almost 6 months ago with a similar issue: Can't turn off Cursor Pyright (basedpyright) type checking

I know Cursor Pyright uses the open source basedpyright, but I am experiencing several issues where the settings are not respected whatsoever, nor can I restart the Cursor Pyright server because it just errors when I try to do so. The huge amount of error reporting from things that are not even errors makes editing python in Cursor nearly unbearable, not to mention it makes the AI do really annoying and needless workarounds, that part is super annoying and borderline unusable.

In short, the errors are:

  1. Cursor Pyright does not respect the type checking mode setting, even when I turn it completely off, it seemingly reports errors as if it were on strict mode
    Screenshot 2025-12-09 at 1.43.35 PM.png

  2. I cannot restart the Cursor Pyright server. The command is there in the command palette, and it goes away when I uninstall the plugin, but it never works when I execute it
    Screenshot 2025-12-09 at 1.44.44 PM.png
    Screenshot 2025-12-09 at 1.44.36 PM.png

Steps to Reproduce

  1. Install cursor pyright
  2. Set type checking mode to off
  3. Open any reasonably sized python file that uses external libraries
  4. Observe tons of errors and warnings despite being set to off
  5. Try and restart the server
  6. It will error

Expected Behavior

type checking mode is respected

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.50
VSCode Version: 1.105.1
Commit: 56f0a83df8e9eb48585fcc4858a9440db4cc7770
Date: 2025-12-06T23:39:52.834Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Yes - Cursor is unusable

It looks like my pasted images did not show up, here they are

I have no pyright config file or pyright settings in the pyproject.toml file

@ravirahman in reference to Can't turn off Cursor Pyright (basedpyright) type checking - #13 by ravirahman since that one is closed and I can’r reply there, I figured it out.

I have basedpyright in my dev dependencies in my pyproject.toml. From the basedpyright log files:

[Info  - 4:06:44 PM] basedpyright language server 1.36.1 starting
[Info  - 4:06:44 PM] Server root directory: file:///[PATH TO MY PROJECT]/.venv/lib/python3.13/site-packages/basedpyright/dist
[Info  - 4:06:44 PM] Starting service instance "[MY PROJECT]"
Received pythonPath from Python extension: [PATH TO MY PROJECT]/.venv/bin/python
[Info  - 4:06:44 PM] Setting pythonPath for service "[MY PROJECT]": "[PATH TO MY PROJECT]/.venv/bin/python"
[Info  - 4:06:44 PM] No include entries specified; assuming [PATH TO MY PROJECT]
[Info  - 4:06:44 PM] Auto-excluding **/node_modules
[Info  - 4:06:44 PM] Auto-excluding **/__pycache__
[Info  - 4:06:44 PM] Auto-excluding **/.*
[Info  - 4:06:44 PM] Assuming Python version 3.13.11.final.0
[Info  - 4:06:44 PM] BG: Background analysis(1) root directory: file:///[PATH TO MY PROJECT]/.venv/lib/python3.13/site-packages/basedpyright/dist
[Info  - 4:06:44 PM] BG: Background analysis(1) started
[Info  - 4:06:44 PM] Found 108 source files

I can tell it is identifying and trying to use the basedpyright in my virtual environment. It is only when I uninstall it by removing it from my pyproject.toml and running uv sync then quitting and reopening cursor that it starts working again.

Of course removing it from the project dependencies present other problems, so hopefully this can be addressed.