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

@@ -21,7 +21,7 @@ if sys.version_info >= (3, 7):
TIME: str
class Stats:
sort_arg_dict_default: dict[str, Tuple[Any, str]]
sort_arg_dict_default: dict[str, tuple[Any, str]]
def __init__(
self: _T,
__arg: None | str | Profile | _cProfile = ...,
@@ -33,7 +33,7 @@ class Stats:
def get_top_level_stats(self) -> None: ...
def add(self: _T, *arg_list: None | str | Profile | _cProfile | _T) -> _T: ...
def dump_stats(self, filename: StrOrBytesPath) -> None: ...
def get_sort_arg_defs(self) -> dict[str, Tuple[Tuple[Tuple[int, int], ...], str]]: ...
def get_sort_arg_defs(self) -> dict[str, tuple[Tuple[tuple[int, int], ...], str]]: ...
@overload
def sort_stats(self: _T, field: int) -> _T: ...
@overload
@@ -41,8 +41,8 @@ class Stats:
def reverse_order(self: _T) -> _T: ...
def strip_dirs(self: _T) -> _T: ...
def calc_callees(self) -> None: ...
def eval_print_amount(self, sel: _Selector, list: list[str], msg: str) -> Tuple[list[str], str]: ...
def get_print_list(self, sel_list: Iterable[_Selector]) -> Tuple[int, list[str]]: ...
def eval_print_amount(self, sel: _Selector, list: list[str], msg: str) -> tuple[list[str], str]: ...
def get_print_list(self, sel_list: Iterable[_Selector]) -> tuple[int, list[str]]: ...
def print_stats(self: _T, *amount: _Selector) -> _T: ...
def print_callees(self: _T, *amount: _Selector) -> _T: ...
def print_callers(self: _T, *amount: _Selector) -> _T: ...