mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[xml.etree] Add _setroot method to xml.etree.ElementTree.ElementTree (#15078)
This commit is contained in:
@@ -157,6 +157,7 @@ _Root = TypeVar("_Root", Element, Element | None, default=Element | None)
|
||||
class ElementTree(Generic[_Root]):
|
||||
def __init__(self, element: Element[Any] | None = None, file: _FileRead | None = None) -> None: ...
|
||||
def getroot(self) -> _Root: ...
|
||||
def _setroot(self, element: Element[Any]) -> None: ...
|
||||
def parse(self, source: _FileRead, parser: XMLParser | None = None) -> Element: ...
|
||||
def iter(self, tag: str | None = None) -> Generator[Element, None, None]: ...
|
||||
def find(self, path: str, namespaces: dict[str, str] | None = None) -> Element | None: ...
|
||||
|
||||
Reference in New Issue
Block a user