diff --git a/rest_framework-stubs/validators.pyi b/rest_framework-stubs/validators.pyi index 5cf4cd228..b176aa0d1 100644 --- a/rest_framework-stubs/validators.pyi +++ b/rest_framework-stubs/validators.pyi @@ -51,7 +51,7 @@ class ProhibitSurrogateCharactersValidator: def __call__(self, value: Any) -> None: ... class BaseUniqueForValidator: - message: StrOrPromise + message: StrOrPromise | None missing_message: StrOrPromise requires_context: bool queryset: QuerySet diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index 9b407de32..c147184d6 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -106,7 +106,6 @@ rest_framework.test.APIClient.options rest_framework.test.RequestsClient.__init__ rest_framework.throttling.SimpleRateThrottle.cache rest_framework.utils.encoders.JSONEncoder.default -rest_framework.validators.BaseUniqueForValidator.message rest_framework.validators.ContextValidator rest_framework.validators.Validator rest_framework.views.APIView.metadata_class