mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
xml.etree: Fix tag param in __init__ (#10968)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user