Use PEP 585 syntax wherever possible (#6717)

This commit is contained in:
Alex Waygood authored and GitHub committed 2021-12-28 11:31:43 +01:00
1 parent e6cb341d94
commit 8d5d2520ac
237 files changed
+966 -1069

No files matched your search

+3 -3
View File
@@ -1,9 +1,9 @@
import sys
from _typeshed import SupportsWrite
from types import FrameType, TracebackType
from typing import IO, Any, Generator, Iterable, Iterator, List, Mapping, Optional, Tuple, Type, overload
from typing import IO, Any, Generator, Iterable, Iterator, Mapping, Optional, Type, overload
_PT = Tuple[str, int, str, Optional[str]]
_PT = tuple[str, int, str, Optional[str]]
def print_tb(tb: TracebackType | None, limit: int | None = ..., file: IO[str] | None = ...) -> None: ...
@@ -146,7 +146,7 @@ class FrameSummary(Iterable[Any]):
def __getitem__(self, i: int) -> Any: ...
def __iter__(self) -> Iterator[Any]: ...
class StackSummary(List[FrameSummary]):
class StackSummary(list[FrameSummary]):
@classmethod
def extract(
cls,