Skip to content

Importing from __main__ should cause auto completion like normal imports #15716

Answered by brettcannon
mathgeniuszach asked this question in Q&A
Discussion options

You must be logged in to vote

Which language server are you using? And are you saying you named a package __main__? If so then that's actually going to have some unforeseen consequences with Python itself as the __main__ name has special meaning and is expected to be a (sub)module, not a package.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mathgeniuszach
Comment options

@brettcannon
Comment options

@mathgeniuszach
Comment options

@brettcannon
Comment options

Answer selected by mathgeniuszach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
2 participants