django-stubs
django-stubs copied to clipboard
Maximum semantic analysis iteration count reached error with django-stubs 5.0.3 & 5.0.4
Bug report
What's wrong
When running django-stubs 5.0.2, mypy goes through without error. But when updating django-stubs to 5.0.3, I’m getting the following error:
error: INTERNAL ERROR: maximum semantic analysis iteration count reached.
The traceback is huge, and not really helping, so my next step is to have a minimal reproduction, but I wanted to raise the bug in case someone else is running into this as well. I’ll also try to review what’s happening between the 2 versions to understand where the issue can be.
System information
- OS: Linux 6.10.5
pythonversion:djangoversion: 5.0.9 (but same error with 5.1.1)mypyversion: 1.11.2 (but same error with 1.10.1)django-stubsversion: 5.0.3django-stubs-extversion: 5.0.3
It works fine with:
djangoversion 5.1.1mypyversion 1.11.2django-stubsversion 5.0.2django-stubs-extversion 5.0.2