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

@@ -65,8 +65,8 @@ def format_exc(limit: int | None = ..., chain: bool = ...) -> str: ...
def format_tb(tb: TracebackType | None, limit: int | None = ...) -> list[str]: ...
def format_stack(f: FrameType | None = ..., limit: int | None = ...) -> list[str]: ...
def clear_frames(tb: TracebackType) -> None: ...
def walk_stack(f: FrameType | None) -> Iterator[Tuple[FrameType, int]]: ...
def walk_tb(tb: TracebackType | None) -> Iterator[Tuple[FrameType, int]]: ...
def walk_stack(f: FrameType | None) -> Iterator[tuple[FrameType, int]]: ...
def walk_tb(tb: TracebackType | None) -> Iterator[tuple[FrameType, int]]: ...
class TracebackException:
__cause__: TracebackException
@@ -146,7 +146,7 @@ class StackSummary(List[FrameSummary]):
@classmethod
def extract(
cls,
frame_gen: Iterable[Tuple[FrameType, int]],
frame_gen: Iterable[tuple[FrameType, int]],
*,
limit: int | None = ...,
lookup_lines: bool = ...,