Open devanubis opened 2 weeks ago
Actually, I've just checked and django-stubs
already fixed both of these, and better than me with an @overload
.
Would you prefer a cherry-pick of those as separate PRs?
Or do you have any immediate plans to update from django-stubs
? I noticed #255...
Django 5 added:
BaseConstraint.violation_error_code
and corresponding__init__
parameter.to replace
checkand corresponding
init` parameter.check
now emits a Django6 deprecation warning, but can't change it without updating the types.https://github.com/django/django/blob/stable/5.1.x/django/db/models/constraints.py