mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Various fixes in gdb (#8144)
* gdb.events.BreakpointEvent: fix various typos * gdb.printing: remove GenPrinterFunction This was meant to be a private type alias, but it is unused and a duplicate of the better named gdb._PrettyPrinterLookupFunction.
This commit is contained in:
committed by
GitHub
parent
780269823b
commit
6a5abd38cf
@@ -27,8 +27,8 @@ class StopEvent(ThreadEvent):
|
||||
stop_signal: str
|
||||
|
||||
class BreakpointEvent(StopEvent):
|
||||
breakpoints = Sequence[gdb.Breakpoint]
|
||||
breakkpoint: gdb.Breakpoint
|
||||
breakpoints: Sequence[gdb.Breakpoint]
|
||||
breakpoint: gdb.Breakpoint
|
||||
|
||||
class StopEventRegistry:
|
||||
def connect(self, __object: Callable[[StopEvent], object]) -> None: ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from collections.abc import Callable, Iterable
|
||||
from collections.abc import Iterable
|
||||
|
||||
import gdb
|
||||
from gdb import _PrettyPrinterLookupFunction
|
||||
@@ -19,8 +19,6 @@ class SubPrettyPrinter:
|
||||
|
||||
def __init__(self, name: str) -> None: ...
|
||||
|
||||
GenPrinterFunction = Callable[[gdb.Value], PrettyPrinter]
|
||||
|
||||
class RegexpCollectionPrettyPrinter(PrettyPrinter):
|
||||
def __init__(self, name: str) -> None: ...
|
||||
def add_printer(self, name: str, regexp: str, gen_printer: _PrettyPrinterLookupFunction) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user