mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user