Environment
Build of Visual Studio: 18.11.0 Canary [12110.251.main]
Build of Python Package: 18.0.26223.1
Version of Pylance: 2026.2.109
OS version: Windows 11 Enterprise, version 25H2
Steps to Reproduce
- Create a new python application
- Right click in SE, Add new item, Python module, module1.py
- Enter some code in the new file:
MSG = 'hello'
- In PythonApplication.py:
import module1
- Check for completions:
module1.MSG
- Observes
Expected behavior
It should import successfully without any error.
Additional context and screenshots
The green wavy line exists after importing new item.

Environment
Build of Visual Studio: 18.11.0 Canary [12110.251.main]
Build of Python Package: 18.0.26223.1
Version of Pylance: 2026.2.109
OS version: Windows 11 Enterprise, version 25H2
Steps to Reproduce
MSG = 'hello'import module1module1.MSGExpected behavior
It should import successfully without any error.
Additional context and screenshots

The green wavy line exists after importing new item.