diff --git a/rest_framework-stubs/schemas/openapi.pyi b/rest_framework-stubs/schemas/openapi.pyi index b70845122..b9c689019 100644 --- a/rest_framework-stubs/schemas/openapi.pyi +++ b/rest_framework-stubs/schemas/openapi.pyi @@ -18,10 +18,6 @@ class DRFOpenAPIInfo(TypedDict, total=False): version: str description: str -class ExternalDocumentationObject(TypedDict, total=False): - description: str - url: str - class DRFOpenAPISchema(TypedDict, total=False): openapi: str info: DRFOpenAPIInfo @@ -29,7 +25,6 @@ class DRFOpenAPISchema(TypedDict, total=False): components: dict[str, dict[str, Any]] security: list[dict[str, list[Any]]] tags: list[dict[str, Any]] - externalDocs: ExternalDocumentationObject servers: list[dict[str, Any]] class SchemaGenerator(BaseSchemaGenerator): diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index 9b407de32..bda4f5a43 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -69,7 +69,6 @@ rest_framework.schemas.get_schema_view rest_framework.schemas.openapi.AutoSchema.__init__ rest_framework.schemas.openapi.DRFOpenAPIInfo rest_framework.schemas.openapi.DRFOpenAPISchema -rest_framework.schemas.openapi.ExternalDocumentationObject rest_framework.schemas.openapi.SchemaGenerator.get_schema rest_framework.schemas.views.SchemaView.__init__ rest_framework.schemas.views.SchemaView.renderer_classes