1
+ from _typeshed import ExcInfo
1
2
from collections .abc import Callable , Iterable , Mapping
2
3
from types import CodeType , FrameType , TracebackType
3
4
from typing import IO , Any , SupportsInt , TypeVar
@@ -8,14 +9,12 @@ __all__ = ["BdbQuit", "Bdb", "Breakpoint"]
8
9
_T = TypeVar ("_T" )
9
10
_P = ParamSpec ("_P" )
10
11
_TraceDispatch : TypeAlias = Callable [[FrameType , str , Any ], Any ] # TODO: Recursive type
11
- _ExcInfo : TypeAlias = tuple [type [BaseException ], BaseException , FrameType ]
12
12
13
13
GENERATOR_AND_COROUTINE_FLAGS : Literal [672 ]
14
14
15
15
class BdbQuit (Exception ): ...
16
16
17
17
class Bdb :
18
-
19
18
skip : set [str ] | None
20
19
breaks : dict [str , list [int ]]
21
20
fncache : dict [str , str ]
@@ -32,7 +31,7 @@ class Bdb:
32
31
def dispatch_line (self , frame : FrameType ) -> _TraceDispatch : ...
33
32
def dispatch_call (self , frame : FrameType , arg : None ) -> _TraceDispatch : ...
34
33
def dispatch_return (self , frame : FrameType , arg : Any ) -> _TraceDispatch : ...
35
- def dispatch_exception (self , frame : FrameType , arg : _ExcInfo ) -> _TraceDispatch : ...
34
+ def dispatch_exception (self , frame : FrameType , arg : ExcInfo ) -> _TraceDispatch : ...
36
35
def is_skipped_module (self , module_name : str ) -> bool : ...
37
36
def stop_here (self , frame : FrameType ) -> bool : ...
38
37
def break_here (self , frame : FrameType ) -> bool : ...
@@ -41,7 +40,7 @@ class Bdb:
41
40
def user_call (self , frame : FrameType , argument_list : None ) -> None : ...
42
41
def user_line (self , frame : FrameType ) -> None : ...
43
42
def user_return (self , frame : FrameType , return_value : Any ) -> None : ...
44
- def user_exception (self , frame : FrameType , exc_info : _ExcInfo ) -> None : ...
43
+ def user_exception (self , frame : FrameType , exc_info : ExcInfo ) -> None : ...
45
44
def set_until (self , frame : FrameType , lineno : int | None = ...) -> None : ...
46
45
def set_step (self ) -> None : ...
47
46
def set_next (self , frame : FrameType ) -> None : ...
0 commit comments