PyLance settings can be adjusted within VS Code (or your code editor of choice that supports PyLance). Here’s how you can ensure PyLance uses the correct Python interpreter:
If VS Code didn't auto-detect the environment, you need to find where Poetry hid it.
poetry shell
poetry env info --path
poetry config virtualenvs.in-project true
poetry show --tree
This tells Pylance: "When searching for imports, also look inside the src folder."