We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_setroot
xml.etree.ElementTree.ElementTree
1 parent c10e368 commit aa70a2fCopy full SHA for aa70a2f
1 file changed
stdlib/xml/etree/ElementTree.pyi
@@ -157,6 +157,7 @@ _Root = TypeVar("_Root", Element, Element | None, default=Element | None)
157
class ElementTree(Generic[_Root]):
158
def __init__(self, element: Element[Any] | None = None, file: _FileRead | None = None) -> None: ...
159
def getroot(self) -> _Root: ...
160
+ def _setroot(self, element: Element[Any]) -> None: ...
161
def parse(self, source: _FileRead, parser: XMLParser | None = None) -> Element: ...
162
def iter(self, tag: str | None = None) -> Generator[Element, None, None]: ...
163
def find(self, path: str, namespaces: dict[str, str] | None = None) -> Element | None: ...
0 commit comments