diff --git a/stubs/gdb/gdb/__init__.pyi b/stubs/gdb/gdb/__init__.pyi index a8a5d6d79468..5911d37ab914 100644 --- a/stubs/gdb/gdb/__init__.pyi +++ b/stubs/gdb/gdb/__init__.pyi @@ -111,7 +111,12 @@ class Value: def __ge__(self, other: _ValueOrNative, /) -> bool: ... def __getitem__(self, key: int | str | Field, /) -> Value: ... def __call__(self, *args: _ValueOrNative) -> Value: ... - def __init__(self, val: _ValueOrNative, type: Type | None = None) -> None: ... + + @overload + def __init__(self, val: _ValueOrNative, type: None = None) -> None: ... + @overload + def __init__(self, val: _BufferType, type: Type) -> None: ... + def cast(self, type: Type) -> Value: ... def dereference(self) -> Value: ... def referenced_value(self) -> Value: ...