[tool.pylance] venvPath = "/home/user/.cache/pypoetry/virtualenvs" venv = "my-project-abcdefgh-py3.9"
To fix the in Visual Studio Code, you must point your VS Code workspace to the exact Python interpreter managed by Poetry.
This ensures every developer on your team has the same Pylance experience.