xml.etree: Fix tag param in __init__ (#10968)

This commit is contained in:
Avasam
2023-11-03 09:50:49 -04:00
committed by GitHub
parent 19650767da
commit 3a56e0034c
2 changed files with 5 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ class Element:
attrib: dict[str, str]
text: str | None
tail: str | None
def __init__(self, tag: str | Callable[..., Element], attrib: dict[str, str] = ..., **extra: str) -> None: ...
def __init__(self, tag: str, attrib: dict[str, str] = ..., **extra: str) -> None: ...
def append(self, __subelement: Element) -> None: ...
def clear(self) -> None: ...
def extend(self, __elements: Iterable[Element]) -> None: ...
@@ -132,7 +132,7 @@ def SubElement(parent: Element, tag: str, attrib: dict[str, str] = ..., **extra:
def Comment(text: str | None = None) -> Element: ...
def ProcessingInstruction(target: str, text: str | None = None) -> Element: ...
PI: Callable[..., Element]
PI = ProcessingInstruction
class QName:
text: str