Python highlight can't work

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

A few days ago, I switched from Pylance to Cursor Pyright and noticed that Cursor fails to highlight code in certain scenarios. For example, in the scenario below, even though the LSP has recognized the class member types, the colors still do not display correctly. The other image shows the highlighting for the same code when I was using Pylance.

Wrong color:

企业微信截图_776eb95a-1f50-47ee-b421-215f5e0fc0f1

Right color:

企业微信截图_fbf316f1-0e74-4115-91a8-a9d0cccbb46f

Steps to Reproduce

Above is all

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

ersion: 1.5.11 (Universal)
VSCode Version: 1.99.3
Commit: 2f2737de9aa376933d975ae30290447c910fdf40
Date: 2025-09-05T03:48:32.332Z (5 days ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report, we’ll look into it.

cc @ravirahman

Hi @user618, I believe this is due to a difference in implementations. Our extension is based on basedpyright, and there are some differences in how class members / properties are colored. Could you create an issue in their github?

When we update our extension, we’ll pull in the fixes and improvements they make to thier extension.