stdlib: Add several missing comparison methods (#7202)

This commit is contained in:
Alex Waygood
2022-02-14 19:09:52 +00:00
committed by GitHub
parent f3ad0179f8
commit 66a229b709
5 changed files with 37 additions and 1 deletions

View File

@@ -111,6 +111,10 @@ PI: Callable[..., Element]
class QName:
text: str
def __init__(self, text_or_uri: str, tag: str | None = ...) -> None: ...
def __lt__(self, other: QName | str) -> bool: ...
def __le__(self, other: QName | str) -> bool: ...
def __gt__(self, other: QName | str) -> bool: ...
def __ge__(self, other: QName | str) -> bool: ...
class ElementTree:
def __init__(self, element: Element | None = ..., file: _File | None = ...) -> None: ...