-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marks local imports as "missing" #6164
Comments
Can you share your project structure or a simple code sample that repros the issue? |
project/ main.py import lib.media as med #pylance says lib.media "does not exist"
media.load("assets/music.mp3") #no auto-complete! :(
media.play() #all code works fine when run |
The runtime environment might differ from the edit-time environment, so the fact that |
Never mind, it seems to have resolved the imports, I have no idea what made it work, but it does now. |
Environment data
Code Snippet
Repro Steps
Expected behavior
Pylance accepts the import and shows auto-complete
Actual behavior
Pylance marks the import as "missing"
Logs
The text was updated successfully, but these errors were encountered: