AssertionError: Cannot find component <model>_ManyRelatedManager
for <app>.models.<model>_ManyRelatedManager
#1861
Labels
<model>_ManyRelatedManager
for <app>.models.<model>_ManyRelatedManager
#1861
Bug report
What's wrong
After upgrading to django-stubs 4.2.7, one of my projects has developed an issue when used with mypy incremental mode.
It occurs when scanning some specific source file that has type errors. Running mypy the first with a clean cache successfully reports the type error. Running the second time, it fails with AssertionError. I haven't yet isolated a reproducible test case.
mypy --no-incremental
is a work-around for this issue. Also reverting #1805 fixes it.How is that should be
No error. :)
System information
python
version: 3.11.6django
version: 4.2.8mypy
version: 1.7.0django-stubs
version: 4.2.7django-stubs-ext
version: 4.2.7The text was updated successfully, but these errors were encountered: