Replies: 1 comment 2 replies
-
I agree that it would be better if the auto-import feature didn't suggest private modules. The auto-import logic is owned by the pylance team. I realize that you're not using pylance, since it works only with VS Code, but the auto-import logic is common to pylance and pyright. You could log a feature request in the pylance-release project. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say we have the following directory contents:
The contents look like so:
If I try to import auto-import baz, pyright seems to use
from foo._bar import baz
and I have to manually change the import. Is there any way to configure python, pyright, or anything else to have it default tofrom foo import baz
without having to handle this manually?For context, I'm using coc-pyright with vim8, so it's totally possible I'm missing something, but I've looked for a while and can't find a good solution to this
Beta Was this translation helpful? Give feedback.
All reactions