Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -2,7 +2,7 @@ import sys
from _typeshed import StrOrBytesPath
from cProfile import Profile as _cProfile
from profile import Profile
from typing import IO, Any, Dict, Iterable, List, Tuple, TypeVar, Union, overload
from typing import IO, Any, Iterable, Tuple, TypeVar, Union, overload
_Selector = Union[str, float, int]
_T = TypeVar("_T", bound=Stats)
@@ -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,12 +41,12 @@ 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: ...
def print_call_heading(self, name_size: int, column_title: str) -> None: ...
def print_call_line(self, name_size: int, source: str, call_dict: Dict[str, Any], arrow: str = ...) -> None: ...
def print_call_line(self, name_size: int, source: str, call_dict: dict[str, Any], arrow: str = ...) -> None: ...
def print_title(self) -> None: ...
def print_line(self, func: str) -> None: ...