-
-
Notifications
You must be signed in to change notification settings - Fork 521
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
Description
I am facing an issue with django-stubs where reverse relations are not recognized by mypy. Despite trying multiple threads and solutions, including those in the following discussions and issues:
The problem persists.
Actual Behavior
mypy raises errors indicating that the reverse relation field is not recognized. Specifically, it cannot resolve the keyword 'proposals' into the field.
Expected Behavior
mypy should recognize the reverse relations between models and not raise errors when these relations are used.
Steps to Reproduce
Define models with ManyToManyField and reverse relations.
Run mypy to check for typing errors.
System information
- OS:
python3.11.4:django4.2.7,:mypy"1.10.1":django-stubs"5.0.2":django-stubs-ext"5.0.2":
How can I make mypy recognize the reverse relation between these models? It is also important to mention that the models implement standard objects.
Thank you for your assistance.
jose-reveni, HappyCthulhu and seyhankhan
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working


