Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -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, Iterable, Mapping, Sequence, Tuple, TypeVar
from typing import IO, Any, Callable, ClassVar, Iterable, Mapping, Sequence, TypeVar
_T = TypeVar("_T")
@@ -41,7 +41,7 @@ class Pdb(Bdb, Cmd):
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]
@@ -62,11 +62,11 @@ class Pdb(Bdb, Cmd):
def displayhook(self, obj: object) -> None: ...
def handle_command_def(self, line: str) -> bool: ...
def defaultFile(self) -> str: ...
def lineinfo(self, identifier: str) -> Tuple[None, None, None] | Tuple[str, str, int]: ...
def lineinfo(self, identifier: str) -> tuple[None, None, None] | tuple[str, str, int]: ...
def checkline(self, filename: str, lineno: int) -> int: ...
def _getval(self, arg: str) -> object: ...
def print_stack_trace(self) -> None: ...
def print_stack_entry(self, frame_lineno: Tuple[FrameType, int], prompt_prefix: str = ...) -> None: ...
def print_stack_entry(self, frame_lineno: tuple[FrameType, int], prompt_prefix: str = ...) -> None: ...
def lookupmodule(self, filename: str) -> str | None: ...
def _runscript(self, filename: str) -> None: ...
def do_commands(self, arg: str) -> bool | None: ...
@@ -164,10 +164,10 @@ class Pdb(Bdb, Cmd):
# undocumented
def find_function(funcname: str, filename: str) -> Tuple[str, str, int] | None: ...
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):