@@ -7,7 +7,7 @@ import threading
77from collections .abc import Callable , Iterator , Mapping , Sequence
88from contextlib import AbstractContextManager
99from typing import Any , Final , Generic , Literal , Protocol , TypedDict , TypeVar , final , overload , type_check_only
10- from typing_extensions import TypeAlias , deprecated
10+ from typing_extensions import TypeAlias , deprecated , disjoint_base
1111
1212import gdb .FrameDecorator
1313import gdb .types
@@ -74,6 +74,7 @@ class GdbError(Exception): ...
7474_ValueOrNative : TypeAlias = bool | int | float | str | Value | LazyString
7575_ValueOrInt : TypeAlias = Value | int
7676
77+ @disjoint_base
7778class Value :
7879 address : Value
7980 is_optimized_out : bool
@@ -406,6 +407,7 @@ class RecordFunctionSegment:
406407
407408# CLI Commands
408409
410+ @disjoint_base
409411class Command :
410412 def __init__ (self , name : str , command_class : int , completer_class : int = ..., prefix : bool = ...) -> None : ...
411413 def dont_repeat (self ) -> None : ...
@@ -437,6 +439,7 @@ COMPLETE_EXPRESSION: int
437439
438440# GDB/MI Commands
439441
442+ @disjoint_base
440443class MICommand :
441444 name : str
442445 installed : bool
@@ -446,6 +449,7 @@ class MICommand:
446449
447450# Parameters
448451
452+ @disjoint_base
449453class Parameter :
450454 set_doc : str
451455 show_doc : str
@@ -682,6 +686,7 @@ class LineTable:
682686
683687# Breakpoints
684688
689+ @disjoint_base
685690class Breakpoint :
686691 # The where="spec" form of __init__(). See py-breakpoints.c:bppy_init():keywords for the positional order.
687692 @overload
@@ -854,6 +859,7 @@ WP_ACCESS: int
854859
855860# Finish Breakpoints
856861
862+ @disjoint_base
857863class FinishBreakpoint (Breakpoint ):
858864 return_value : Value | None
859865
@@ -907,6 +913,7 @@ class RegisterGroupsIterator(Iterator[RegisterGroup]):
907913
908914# Connections
909915
916+ @disjoint_base
910917class TargetConnection :
911918 def is_valid (self ) -> bool : ...
912919
@@ -941,6 +948,7 @@ class _Window(Protocol):
941948 def click (self , x : int , y : int , button : int ) -> None : ...
942949
943950# Events
951+ @disjoint_base
944952class Event : ...
945953
946954class ThreadEvent (Event ):
0 commit comments