From cdfbe6dd059ee361b0de5d2d83918155415d2fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EC=84=A0=EC=98=A4?= Date: Tue, 3 Dec 2024 21:42:18 +0900 Subject: [PATCH] Update rest_framework.BaseUniqueForValidator --- rest_framework-stubs/validators.pyi | 2 +- scripts/stubtest/allowlist_todo.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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