From 1a72b948e41471a3232a3bd7022984ce6be84a96 Mon Sep 17 00:00:00 2001 From: kwang1215 Date: Tue, 3 Dec 2024 22:45:27 +0900 Subject: [PATCH] Update rest_framework.schema.__init__.get_schema_view --- rest_framework-stubs/schemas/__init__.pyi | 2 +- scripts/stubtest/allowlist_todo.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rest_framework-stubs/schemas/__init__.pyi b/rest_framework-stubs/schemas/__init__.pyi index 9a335862e..80cde1fd6 100644 --- a/rest_framework-stubs/schemas/__init__.pyi +++ b/rest_framework-stubs/schemas/__init__.pyi @@ -20,7 +20,7 @@ def get_schema_view( renderer_classes: Sequence[type[BaseRenderer]] | None = ..., public: bool = ..., patterns: Sequence[_AnyURL] | None = ..., - generator_class: type[BaseSchemaGenerator] = ..., + generator_class: type[BaseSchemaGenerator] | None = ..., authentication_classes: Sequence[str] = ..., permission_classes: Sequence[str] = ..., version: str | None = ..., diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index 9b407de32..4cbed5ea5 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -65,7 +65,6 @@ rest_framework.routers.BaseRouter.register rest_framework.schemas.SchemaGenerator.__init__ rest_framework.schemas.coreapi.SchemaGenerator.__init__ rest_framework.schemas.generators.common_path -rest_framework.schemas.get_schema_view rest_framework.schemas.openapi.AutoSchema.__init__ rest_framework.schemas.openapi.DRFOpenAPIInfo rest_framework.schemas.openapi.DRFOpenAPISchema