diff --git a/django-stubs/db/models/constraints.pyi b/django-stubs/db/models/constraints.pyi index 50a4a474f..bfa5e9ad8 100644 --- a/django-stubs/db/models/constraints.pyi +++ b/django-stubs/db/models/constraints.pyi @@ -18,7 +18,9 @@ class BaseConstraint: violation_error_code: str | None violation_error_message: _StrOrPromise | None default_violation_error_message: _StrOrPromise - def __init__(self, name: str, violation_error_message: _StrOrPromise | None = ...) -> None: ... + def __init__( + self, name: str, violation_error_code: str | None = ..., violation_error_message: _StrOrPromise | None = ... + ) -> None: ... def constraint_sql(self, model: type[Model] | None, schema_editor: BaseDatabaseSchemaEditor | None) -> str: ... def create_sql(self, model: type[Model] | None, schema_editor: BaseDatabaseSchemaEditor | None) -> str: ... def remove_sql(self, model: type[Model] | None, schema_editor: BaseDatabaseSchemaEditor | None) -> str: ...