Add type stubs for gdb.Value comparison operators (#9411)

This commit is contained in:
Gulshan Singh
2022-12-27 13:56:19 -08:00
committed by GitHub
parent 0cf685cc17
commit c13a9ed985

View File

@@ -78,6 +78,12 @@ class Value:
def __xor__(self, other: _ValueOrInt) -> Value: ...
def __lshift__(self, other: _ValueOrInt) -> Value: ...
def __rshift__(self, other: _ValueOrInt) -> Value: ...
def __eq__(self, other: _ValueOrInt) -> bool: ... # type: ignore[override]
def __ne__(self, other: _ValueOrInt) -> bool: ... # type: ignore[override]
def __lt__(self, other: _ValueOrInt) -> bool: ...
def __le__(self, other: _ValueOrInt) -> bool: ...
def __gt__(self, other: _ValueOrInt) -> bool: ...
def __ge__(self, other: _ValueOrInt) -> bool: ...
def __getitem__(self, key: int | str | Field) -> Value: ...
def __call__(self, *args: _ValueOrNative) -> Value: ...
def __init__(self, val: _ValueOrNative) -> None: ...