-
-
Notifications
You must be signed in to change notification settings - Fork 485
mypy can’t build migration graph #1312
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
Comments
This error seems to indicate that Django can't find the Maybe INSTALLED_APPS differs between the settings file used in mypy ( |
In any case this looks like misconfiguration of Django, not a bug in django-stubs. |
hmmm, seems that mypy looks to correct settings.py file, which contains following INSTALLED_APPS:
I’ve tried some approaches, for example, I’ve deleted django_prometheus from installed apps, and error text has changed: During handling of the above exception, another exception occurred: Traceback (most recent call last): Maybe now it’s easier to help me with this situation |
PR #1342 by flaeppe changed this logic to indicate a mypy error in code, instead of crashing. This can be suppressed with a If the next release doesn't fix your use case, feel free to reopen. |
1.14.0 has been released. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
What's wrong
i have a django project, is runs and works correctly. But when I try to launch mypy, it shows some errors:
`mypy src --install-types --namespace-packages --implicit-reexport --config-file ./pyproject.toml
Error constructing plugin instance of NewSemanalDjangoPlugin
but django server runs correctly with all applied migrations
How is that should be
mypy should launch successfully
System information
python
version: 3.10.9django
version: 4.1.4mypy
version: 0.991django-stubs
version: 1.13.1django-stubs-ext
version: 0.7.0The text was updated successfully, but these errors were encountered: