File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,12 @@ class Block:
492
492
is_static : bool
493
493
494
494
def is_valid (self ) -> bool : ...
495
+ def __iter__ (self ) -> BlockIterator : ...
496
+
497
+ class BlockIterator :
498
+ def is_valid (self ) -> bool : ...
499
+ def __iter__ (self : _typeshed .Self ) -> _typeshed .Self : ...
500
+ def __next__ (self ) -> Symbol : ...
495
501
496
502
# Symbols
497
503
Original file line number Diff line number Diff line change 1
- from collections .abc import Iterable
1
+ from collections .abc import Callable , Iterable
2
2
3
3
import gdb
4
4
from gdb import _PrettyPrinterLookupFunction
5
5
6
6
class PrettyPrinter :
7
7
8
8
name : str
9
- subprinters : list [SubPrettyPrinter ]
9
+ subprinters : list [SubPrettyPrinter ] | None
10
10
enabled : bool
11
11
12
12
def __init__ (self , name : str , subprinters : Iterable [SubPrettyPrinter ] | None = ...) -> None : ...
@@ -26,4 +26,8 @@ class RegexpCollectionPrettyPrinter(PrettyPrinter):
26
26
class FlagEnumerationPrinter (PrettyPrinter ):
27
27
def __init__ (self , enum_type : str ) -> None : ...
28
28
29
- def register_pretty_printer (obj : gdb .Objfile | gdb .Progspace | None , printer : PrettyPrinter , replace : bool = ...) -> None : ...
29
+ def register_pretty_printer (
30
+ obj : gdb .Objfile | gdb .Progspace | None ,
31
+ printer : PrettyPrinter | Callable [[gdb .Value ], gdb ._PrettyPrinter | None ],
32
+ replace : bool = ...,
33
+ ) -> None : ...
You can’t perform that action at this time.
0 commit comments