From 770724013de34af6f75fa444cdbb76d187b41875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Bethune?= Date: Tue, 16 Jan 2024 12:47:37 +0100 Subject: [PATCH] `defusedxml`: Add xml.dom.minidom.Document return type annotation (#11279) --- stubs/defusedxml/defusedxml/minidom.pyi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stubs/defusedxml/defusedxml/minidom.pyi b/stubs/defusedxml/defusedxml/minidom.pyi index 177f8b1a8..974d1a93a 100644 --- a/stubs/defusedxml/defusedxml/minidom.pyi +++ b/stubs/defusedxml/defusedxml/minidom.pyi @@ -1,4 +1,5 @@ from _typeshed import Incomplete +from xml.dom.minidom import Document __origin__: str @@ -9,11 +10,11 @@ def parse( forbid_dtd: bool = False, forbid_entities: bool = True, forbid_external: bool = True, -): ... +) -> Document: ... def parseString( string: str, parser: Incomplete | None = None, forbid_dtd: bool = False, forbid_entities: bool = True, forbid_external: bool = True, -): ... +) -> Document: ...