django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

Maximum semantic analysis iteration count reached error with django-stubs 5.0.3 & 5.0.4

Open Alexerson opened this issue 1 year ago • 13 comments

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
  • python version:
  • django version: 5.0.9 (but same error with 5.1.1)
  • mypy version: 1.11.2 (but same error with 1.10.1)
  • django-stubs version: 5.0.3
  • django-stubs-ext version: 5.0.3

It works fine with:

  • django version 5.1.1
  • mypy version 1.11.2
  • django-stubs version 5.0.2
  • django-stubs-ext version 5.0.2

Alexerson avatar Sep 17 '24 03:09 Alexerson