Skip to content

Commit

Permalink
fixup! fixup! Improve hints for ManyToManyDescriptor and start usin…
Browse files Browse the repository at this point in the history
…g it
  • Loading branch information
flaeppe committed Nov 16, 2023
1 parent a6cc98d commit b87f9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/typecheck/fields/test_related.yml
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@
from myapp.models import SalesMan
sales_man = SalesMan()
reveal_type(sales_man.client) # N: Revealed type is "myapp.models.CustomUser_ManyRelatedManager"
reveal_type(sales_man.client(manager="staffs")) # N: Revealed type is "myapp.models.CustomUser_ManyRelatedManager"
reveal_type(sales_man.client(manager="staffs")) # N: Revealed type is "django.db.models.fields.related_descriptors.ManyRelatedManager[myapp.models.CustomUser]"
installed_apps:
- myapp
files:
Expand Down

0 comments on commit b87f9dc

Please sign in to comment.