|
1 | 1 | import sys
|
2 | 2 | from _typeshed import ExcInfo, TraceFunction, Unused
|
3 |
| -from collections.abc import Callable, Iterable, Mapping |
| 3 | +from collections.abc import Callable, Iterable, Iterator, Mapping |
| 4 | +from contextlib import contextmanager |
4 | 5 | from types import CodeType, FrameType, TracebackType
|
5 | 6 | from typing import IO, Any, Final, SupportsInt, TypeVar
|
6 | 7 | from typing_extensions import ParamSpec
|
@@ -30,6 +31,10 @@ class Bdb:
|
30 | 31 | def __init__(self, skip: Iterable[str] | None = None) -> None: ...
|
31 | 32 | def canonic(self, filename: str) -> str: ...
|
32 | 33 | def reset(self) -> None: ...
|
| 34 | + if sys.version_info >= (3, 12): |
| 35 | + @contextmanager |
| 36 | + def set_enterframe(self, frame: FrameType) -> Iterator[None]: ... |
| 37 | + |
33 | 38 | def trace_dispatch(self, frame: FrameType, event: str, arg: Any) -> TraceFunction: ...
|
34 | 39 | def dispatch_line(self, frame: FrameType) -> TraceFunction: ...
|
35 | 40 | def dispatch_call(self, frame: FrameType, arg: None) -> TraceFunction: ...
|
|
0 commit comments