Skip to content

Commit c13a9ed

Browse files
authored
Add type stubs for gdb.Value comparison operators (#9411)
1 parent 0cf685c commit c13a9ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stubs/gdb/gdb/__init__.pyi

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ class Value:
7878
def __xor__(self, other: _ValueOrInt) -> Value: ...
7979
def __lshift__(self, other: _ValueOrInt) -> Value: ...
8080
def __rshift__(self, other: _ValueOrInt) -> Value: ...
81+
def __eq__(self, other: _ValueOrInt) -> bool: ... # type: ignore[override]
82+
def __ne__(self, other: _ValueOrInt) -> bool: ... # type: ignore[override]
83+
def __lt__(self, other: _ValueOrInt) -> bool: ...
84+
def __le__(self, other: _ValueOrInt) -> bool: ...
85+
def __gt__(self, other: _ValueOrInt) -> bool: ...
86+
def __ge__(self, other: _ValueOrInt) -> bool: ...
8187
def __getitem__(self, key: int | str | Field) -> Value: ...
8288
def __call__(self, *args: _ValueOrNative) -> Value: ...
8389
def __init__(self, val: _ValueOrNative) -> None: ...

0 commit comments

Comments
 (0)