Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Python (Based Pyright) does not suggest auto-import settings
Unless i import the class manually and then i delete the import. In that case, Cursor suggests the import path.
If i close the tab (file), the import suggestion breaks again.
Steps to Reproduce
- Create a VENV with UV (only tested with this)
- Install Langchain
uv add langchain - Write down a variable that uses BaseChatModel as a type-hint
model: BaseChatModel | None = None - Use quick-fix to solve the BaseChatModel import
Expected Behavior
Expect this list (appears if you manually import BaseChatModel and then delete the import line)
Screenshots / Screen Recordings
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.2.20 (system setup)
VSCode Version: 1.105.1
Commit: b3573281c4775bfc6bba466bf6563d3d498d1070
Date: 2025-12-12T06:29:26.017Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100
Name: Python
Id: anysphere.cursorpyright
Description: Static type checking for Python
Version: 1.0.10
Publisher: Anysphere
VS Marketplace Link: Cursor
“cursorpyright.analysis.inlayHints.callArgumentNames”: true,
“cursorpyright.analysis.inlayHints.functionReturnTypes”: true,
“cursorpyright.analysis.inlayHints.genericTypes”: true,
“cursorpyright.analysis.useTypingExtensions”: true,
“cursorpyright.analysis.include”: ,
“cursorpyright.analysis.typeCheckingMode”: “recommended”
Name: Python
Id: ms-python.python
Description: Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refactoring, unit tests, and more.
Version: 2025.6.1
Publisher: ms-python
VS Marketplace Link: https://marketplace.cursorapi.com/items/?itemName=ms-python.python
“[python]”: {
“editor.defaultFormatter”: “charliermarsh.ruff”
},
“python.languageServer”: “None”,
“python.testing.pytestEnabled”: true,
“python.missingPackage.severity”: “Error”,
“python.analysis.typeCheckingMode”: “standard”,
“python.autoComplete.extraPaths”: [
],
Does this stop you from using Cursor
No - Cursor works, but with this issue

