Skip to content

Fix base Field and GenericIPAddressField attribute default_error_messages type #1538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions django-stubs/db/models/fields/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]):
creation_counter: int
auto_creation_counter: int
default_validators: Sequence[validators._ValidatorCallable]
default_error_messages: dict[str, str]
default_error_messages: _ErrorMessagesT
hidden: bool
system_check_removed_details: Any | None
system_check_deprecated_details: Any | None
Expand Down Expand Up @@ -427,7 +427,7 @@ class GenericIPAddressField(Field[_ST, _GT]):
_pyi_private_set_type: str | int | Callable[..., Any] | Combinable
_pyi_private_get_type: str

default_error_messages: dict[str, str]
default_error_messages: _ErrorMessagesT
unpack_ipv4: bool
protocol: str
def __init__(
Expand Down