diff --git a/django-stubs/core/exceptions.pyi b/django-stubs/core/exceptions.pyi index e8f72e066..3ccd1399f 100644 --- a/django-stubs/core/exceptions.pyi +++ b/django-stubs/core/exceptions.pyi @@ -44,7 +44,7 @@ class ValidationError(Exception): params: Optional[Dict[str, Any]] = ..., ) -> None: ... @property - def message_dict(self) -> Optional[Dict[str, List[str]]]: ... + def message_dict(self) -> Dict[str, List[str]]: ... @property def messages(self) -> List[str]: ... def update_error_dict(self, error_dict: Dict[str, List[ValidationError]]) -> Dict[str, List[ValidationError]]: ...