Viicos / django-autotyping

Automatically add type hints for Django powered applications.
https://viicos.github.io/django-autotyping/
MIT License
37 stars 0 forks source link

Support typechecking `through_defaults` for `ManyToManyField` #69

Open danlamanna opened 3 months ago

danlamanna commented 3 months ago

From the relevant django documentation section:

beatles.members.add(john, through_defaults={"date_joined": date(1960, 8, 1)})

It would be nice if django-autotyping could verify that date_joined belongs on the Membership model and that the value is the correct type.

Viicos commented 3 months ago

Thanks for the feature request, I'll try to see if it's possible to work on it next week.