Skip to content
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

importing class from wrong module #6843

Open
WellingtonNico opened this issue Jan 11, 2025 · 0 comments
Open

importing class from wrong module #6843

WellingtonNico opened this issue Jan 11, 2025 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@WellingtonNico
Copy link

WellingtonNico commented Jan 11, 2025

Hello guys!

I'm having this problem: some packages that autocomplete provides me are wrong, like this one:

Image

in this case I was trying to import MinValueValidator, it is a class from django.core.validators module, it is used in django_celery_bead.models. I noticed the same problem for many packages(it always happened to me in the last 5 years).

I gues there might be some configuration that I'm missing, can you help me?

I tryied some variations of this config, always restarting vscode just to make sure, but without success:

{
    "python.analysis.packageIndexDepths": [
        {
            "name": "",
            "depth": 15,
            "includeAllSymbols": true
        }
    ],
}

there is no error logs.

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants