mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-06 18:07:39 +08:00
Add missing stubs to pdb and fix related issues in cmd and bdb (#3600)
This commit is contained in:
committed by
Jelle Zijlstra
parent
b6b9df3836
commit
475d1f75fe
@@ -1,5 +1,5 @@
|
||||
|
||||
from typing import Set, Dict, Iterable, Any, Callable, Tuple, Type, SupportsInt, List, Union, TypeVar, Optional, IO
|
||||
from typing import Set, Dict, Iterable, Any, Callable, Mapping, Tuple, Type, SupportsInt, List, Union, TypeVar, Optional, IO
|
||||
from types import FrameType, TracebackType, CodeType
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class Bdb:
|
||||
def is_skipped_module(self, module_name: str) -> bool: ...
|
||||
def stop_here(self, frame: FrameType) -> bool: ...
|
||||
def break_here(self, frame: FrameType) -> bool: ...
|
||||
def do_clear(self, arg: Any) -> None: ...
|
||||
def do_clear(self, arg: Any) -> Optional[bool]: ...
|
||||
def break_anywhere(self, frame: FrameType) -> bool: ...
|
||||
def user_call(self, frame: FrameType, argument_list: None) -> None: ...
|
||||
def user_line(self, frame: FrameType) -> None: ...
|
||||
@@ -57,12 +57,14 @@ class Bdb:
|
||||
def get_breaks(self, filename: str, lineno: int) -> List[Breakpoint]: ...
|
||||
def get_file_breaks(self, filename: str) -> List[Breakpoint]: ...
|
||||
def get_all_breaks(self) -> List[Breakpoint]: ...
|
||||
def get_stack(self, f: FrameType, t: TracebackType) -> Tuple[List[Tuple[FrameType, int]], int]: ...
|
||||
def get_stack(self, f: Optional[FrameType], t: Optional[TracebackType]) -> Tuple[List[Tuple[FrameType, int]], int]: ...
|
||||
def format_stack_entry(self, frame_lineno: int, lprefix: str = ...) -> str: ...
|
||||
def run(self, cmd: Union[str, CodeType], globals: Dict[str, Any] = ..., locals: Dict[str, Any] = ...) -> None: ...
|
||||
def runeval(self, expr: str, globals: Dict[str, Any] = ..., locals: Dict[str, Any] = ...) -> None: ...
|
||||
def runctx(self, cmd: Union[str, CodeType], globals: Dict[str, Any], locals: Dict[str, Any]) -> None: ...
|
||||
def runcall(self, func: Callable[[Any], _T], *args: Any, **kwds: Any) -> Optional[_T]: ...
|
||||
def run(
|
||||
self, cmd: Union[str, CodeType], globals: Optional[Dict[str, Any]] = ..., locals: Optional[Mapping[str, Any]] = ...
|
||||
) -> None: ...
|
||||
def runeval(self, expr: str, globals: Optional[Dict[str, Any]] = ..., locals: Optional[Mapping[str, Any]] = ...) -> None: ...
|
||||
def runctx(self, cmd: Union[str, CodeType], globals: Optional[Dict[str, Any]], locals: Optional[Mapping[str, Any]]) -> None: ...
|
||||
def runcall(self, func: Callable[..., _T], *args: Any, **kwds: Any) -> Optional[_T]: ...
|
||||
|
||||
class Breakpoint:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user