Use the Any trick for xml.etree.ElementTree.getroot() (#8069)

Closes #7770
This commit is contained in:
Alex Waygood
2022-06-14 16:31:19 +01:00
committed by GitHub
parent 5add91d6bb
commit 4941ac0263

View File

@@ -145,7 +145,7 @@ class QName:
class ElementTree:
def __init__(self, element: Element | None = ..., file: _FileRead | None = ...) -> None: ...
def getroot(self) -> Element: ...
def getroot(self) -> Element | Any: ...
def parse(self, source: _FileRead, parser: XMLParser | None = ...) -> Element: ...
def iter(self, tag: str | None = ...) -> Generator[Element, None, None]: ...
if sys.version_info < (3, 9):