Skip to content

Commit aa70a2f

Browse files
authored
[xml.etree] Add _setroot method to xml.etree.ElementTree.ElementTree (#15078)
1 parent c10e368 commit aa70a2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/xml/etree/ElementTree.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ _Root = TypeVar("_Root", Element, Element | None, default=Element | None)
157157
class ElementTree(Generic[_Root]):
158158
def __init__(self, element: Element[Any] | None = None, file: _FileRead | None = None) -> None: ...
159159
def getroot(self) -> _Root: ...
160+
def _setroot(self, element: Element[Any]) -> None: ...
160161
def parse(self, source: _FileRead, parser: XMLParser | None = None) -> Element: ...
161162
def iter(self, tag: str | None = None) -> Generator[Element, None, None]: ...
162163
def find(self, path: str, namespaces: dict[str, str] | None = None) -> Element | None: ...

0 commit comments

Comments
 (0)