mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 16:14:24 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -4,7 +4,7 @@ from bdb import Bdb
|
||||
from cmd import Cmd
|
||||
from inspect import _SourceObjectType
|
||||
from types import CodeType, FrameType, TracebackType
|
||||
from typing import IO, Any, Callable, ClassVar, Dict, Iterable, List, Mapping, Sequence, Tuple, TypeVar
|
||||
from typing import IO, Any, Callable, ClassVar, Iterable, Mapping, Sequence, Tuple, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
@@ -12,9 +12,9 @@ line_prefix: str # undocumented
|
||||
|
||||
class Restart(Exception): ...
|
||||
|
||||
def run(statement: str, globals: Dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...) -> None: ...
|
||||
def runeval(expression: str, globals: Dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...) -> Any: ...
|
||||
def runctx(statement: str, globals: Dict[str, Any], locals: Mapping[str, Any]) -> None: ...
|
||||
def run(statement: str, globals: dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...) -> None: ...
|
||||
def runeval(expression: str, globals: dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...) -> Any: ...
|
||||
def runctx(statement: str, globals: dict[str, Any], locals: Mapping[str, Any]) -> None: ...
|
||||
def runcall(func: Callable[..., _T], *args: Any, **kwds: Any) -> _T | None: ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
@@ -29,19 +29,19 @@ def pm() -> None: ...
|
||||
class Pdb(Bdb, Cmd):
|
||||
# Everything here is undocumented, except for __init__
|
||||
|
||||
commands_resuming: ClassVar[List[str]]
|
||||
commands_resuming: ClassVar[list[str]]
|
||||
|
||||
aliases: Dict[str, str]
|
||||
aliases: dict[str, str]
|
||||
mainpyfile: str
|
||||
_wait_for_mainpyfile: bool
|
||||
rcLines: List[str]
|
||||
commands: Dict[int, List[str]]
|
||||
commands_doprompt: Dict[int, bool]
|
||||
commands_silent: Dict[int, bool]
|
||||
rcLines: list[str]
|
||||
commands: dict[int, list[str]]
|
||||
commands_doprompt: dict[int, bool]
|
||||
commands_silent: dict[int, bool]
|
||||
commands_defining: bool
|
||||
commands_bnum: int | None
|
||||
lineno: int | None
|
||||
stack: List[Tuple[FrameType, int]]
|
||||
stack: list[Tuple[FrameType, int]]
|
||||
curindex: int
|
||||
curframe: FrameType | None
|
||||
curframe_locals: Mapping[str, Any]
|
||||
@@ -136,11 +136,11 @@ class Pdb(Bdb, Cmd):
|
||||
def do_source(self, arg: str) -> bool | None: ...
|
||||
def do_undisplay(self, arg: str) -> bool | None: ...
|
||||
do_ll = do_longlist
|
||||
def _complete_location(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...
|
||||
def _complete_bpnumber(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...
|
||||
def _complete_expression(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...
|
||||
def complete_undisplay(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...
|
||||
def complete_unalias(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...
|
||||
def _complete_location(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ...
|
||||
def _complete_bpnumber(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ...
|
||||
def _complete_expression(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ...
|
||||
def complete_undisplay(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ...
|
||||
def complete_unalias(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ...
|
||||
complete_commands = _complete_bpnumber
|
||||
complete_break = _complete_location
|
||||
complete_b = _complete_location
|
||||
@@ -167,7 +167,7 @@ class Pdb(Bdb, Cmd):
|
||||
def find_function(funcname: str, filename: str) -> Tuple[str, str, int] | None: ...
|
||||
def main() -> None: ...
|
||||
def help() -> None: ...
|
||||
def getsourcelines(obj: _SourceObjectType) -> Tuple[List[str], int]: ...
|
||||
def getsourcelines(obj: _SourceObjectType) -> Tuple[list[str], int]: ...
|
||||
def lasti2lineno(code: CodeType, lasti: int) -> int: ...
|
||||
|
||||
class _rstr(str):
|
||||
|
||||
Reference in New Issue
Block a user