defusedxml: Add xml.dom.minidom.Document return type annotation (#11279)

This commit is contained in:
Jörn Bethune
2024-01-16 12:47:37 +01:00
committed by GitHub
parent 26e77cbf67
commit 770724013d

View File

@@ -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: ...