-
-
Notifications
You must be signed in to change notification settings - Fork 481
Upgrading to mypy 0.770 and Django-stubs 1.5, breaks mypy_django_plugin #344
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
Can you please post output of |
It shows a long list of internal files |
I'm seeing a similar behaviour in my project too:
|
Hi, |
Sorry, I did have the time to dig into it. Will do in several days! |
I've confirmed that the use of
After replacing all future type references in my code with strings (e.g.
|
Hi, I've managed to make a minimal reproducible example, which causes Mypy to error out with "maximum semantic analysis iteration count reached". This code does not involve Most interestingly, there are no type annotations in the code! And in models.py, replacing |
Hi, I was wondering if anyone got a chance to look into this issue more. I upgraded to django-stubs 1.6.0 and mypy 0.782 today but unfortunately the infinite loop still exists in my minimum reproducible example. |
@eyqs I was curious to learn if you made any progress towards identifying the cause of the issue or working around it. We've just hit it as well and getting rid of all of our usages of |
I had this today with mypy 0.931, django-stubs 1.9.0, django-stubs-ext 0.3.1, djangorestframework-stubs 1.4.0. In my case removing the usage of a |
Bug report
Upgrading mypy and Django-stubs breaks the mypy_django_plugin
What's wrong
poetry lock
in my modulemypy .
. It works without doing these updatesHow is that should be
This should not break my
mypy .
typechecksSystem information
python
version: 3.7.4django
version: 3.0.4mypy
version: 0.770django-stubs
version: 1.5The text was updated successfully, but these errors were encountered: