mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
stdlib: audit more callback annotations (#8209)
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import sys
|
||||
from _typeshed import ExcInfo
|
||||
from _typeshed import ExcInfo, TraceFunction
|
||||
from collections.abc import Callable, Iterable, Mapping
|
||||
from types import CodeType, FrameType, TracebackType
|
||||
from typing import IO, Any, SupportsInt, TypeVar
|
||||
from typing_extensions import Literal, ParamSpec, TypeAlias
|
||||
from typing_extensions import Literal, ParamSpec
|
||||
|
||||
__all__ = ["BdbQuit", "Bdb", "Breakpoint"]
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_P = ParamSpec("_P")
|
||||
_TraceDispatch: TypeAlias = Callable[[FrameType, str, Any], Any] # TODO: Recursive type
|
||||
|
||||
GENERATOR_AND_COROUTINE_FLAGS: Literal[672]
|
||||
|
||||
@@ -28,11 +27,11 @@ class Bdb:
|
||||
def __init__(self, skip: Iterable[str] | None = ...) -> None: ...
|
||||
def canonic(self, filename: str) -> str: ...
|
||||
def reset(self) -> None: ...
|
||||
def trace_dispatch(self, frame: FrameType, event: str, arg: Any) -> _TraceDispatch: ...
|
||||
def dispatch_line(self, frame: FrameType) -> _TraceDispatch: ...
|
||||
def dispatch_call(self, frame: FrameType, arg: None) -> _TraceDispatch: ...
|
||||
def dispatch_return(self, frame: FrameType, arg: Any) -> _TraceDispatch: ...
|
||||
def dispatch_exception(self, frame: FrameType, arg: ExcInfo) -> _TraceDispatch: ...
|
||||
def trace_dispatch(self, frame: FrameType, event: str, arg: Any) -> TraceFunction: ...
|
||||
def dispatch_line(self, frame: FrameType) -> TraceFunction: ...
|
||||
def dispatch_call(self, frame: FrameType, arg: None) -> TraceFunction: ...
|
||||
def dispatch_return(self, frame: FrameType, arg: Any) -> TraceFunction: ...
|
||||
def dispatch_exception(self, frame: FrameType, arg: ExcInfo) -> TraceFunction: ...
|
||||
def is_skipped_module(self, module_name: str) -> bool: ...
|
||||
def stop_here(self, frame: FrameType) -> bool: ...
|
||||
def break_here(self, frame: FrameType) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user