Use lowercase set, frozenset and deque where possible (#6346)

This commit is contained in:
Alex Waygood
2021-11-19 23:05:45 +00:00
committed by GitHub
parent 916ca06885
commit 5c8e68f0eb
15 changed files with 77 additions and 79 deletions

View File

@@ -1,7 +1,7 @@
import sys
from _typeshed import SupportsWrite
from types import FrameType, TracebackType
from typing import IO, Any, Generator, Iterable, Iterator, List, Mapping, Optional, Set, Tuple, Type
from typing import IO, Any, Generator, Iterable, Iterator, List, Mapping, Optional, Tuple, Type
_PT = Tuple[str, int, str, Optional[str]]
@@ -90,7 +90,7 @@ class TracebackException:
lookup_lines: bool = ...,
capture_locals: bool = ...,
compact: bool = ...,
_seen: Set[int] | None = ...,
_seen: set[int] | None = ...,
) -> None: ...
@classmethod
def from_exception(
@@ -112,7 +112,7 @@ class TracebackException:
limit: int | None = ...,
lookup_lines: bool = ...,
capture_locals: bool = ...,
_seen: Set[int] | None = ...,
_seen: set[int] | None = ...,
) -> None: ...
@classmethod
def from_exception(