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

@@ -1,5 +1,5 @@
import sys
from typing import List, Optional, Sequence, Tuple, Union, overload
from typing import Optional, Sequence, Tuple, Union, overload
from _tracemalloc import *
@@ -60,9 +60,9 @@ class Traceback(Sequence[Frame]):
else:
def __init__(self, frames: Sequence[_FrameTupleT]) -> None: ...
if sys.version_info >= (3, 7):
def format(self, limit: int | None = ..., most_recent_first: bool = ...) -> List[str]: ...
def format(self, limit: int | None = ..., most_recent_first: bool = ...) -> list[str]: ...
else:
def format(self, limit: int | None = ...) -> List[str]: ...
def format(self, limit: int | None = ...) -> list[str]: ...
@overload
def __getitem__(self, i: int) -> Frame: ...
@overload
@@ -71,11 +71,11 @@ class Traceback(Sequence[Frame]):
class Snapshot:
def __init__(self, traces: Sequence[_TraceTupleT], traceback_limit: int) -> None: ...
def compare_to(self, old_snapshot: Snapshot, key_type: str, cumulative: bool = ...) -> List[StatisticDiff]: ...
def compare_to(self, old_snapshot: Snapshot, key_type: str, cumulative: bool = ...) -> list[StatisticDiff]: ...
def dump(self, filename: str) -> None: ...
def filter_traces(self, filters: Sequence[DomainFilter | Filter]) -> Snapshot: ...
@staticmethod
def load(filename: str) -> Snapshot: ...
def statistics(self, key_type: str, cumulative: bool = ...) -> List[Statistic]: ...
def statistics(self, key_type: str, cumulative: bool = ...) -> list[Statistic]: ...
traceback_limit: int
traces: Sequence[Trace]