Skip to content

Commit

Permalink
fixup: Pass violation_error_code to init (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
q0w committed Feb 25, 2024
1 parent d58ea50 commit ddbc686
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django-stubs/db/models/constraints.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit ddbc686

Please sign in to comment.