From c13a9ed985bd27e262f7e6a7394c1abc99a2a884 Mon Sep 17 00:00:00 2001 From: Gulshan Singh Date: Tue, 27 Dec 2022 13:56:19 -0800 Subject: [PATCH] Add type stubs for gdb.Value comparison operators (#9411) --- stubs/gdb/gdb/__init__.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stubs/gdb/gdb/__init__.pyi b/stubs/gdb/gdb/__init__.pyi index 4fe071d9e..7cf1c35d6 100644 --- a/stubs/gdb/gdb/__init__.pyi +++ b/stubs/gdb/gdb/__init__.pyi @@ -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: ...