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