Use PEP 585 syntax wherever possible (#6717)

This commit is contained in:
Alex Waygood
2021-12-28 10:31:43 +00:00
committed by GitHub
parent e6cb341d94
commit 8d5d2520ac
237 changed files with 966 additions and 1069 deletions

View File

@@ -11,7 +11,7 @@ from _typeshed import (
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
from os import PathLike, stat_result
from types import TracebackType
from typing import IO, Any, BinaryIO, Generator, Sequence, Tuple, Type, TypeVar, overload
from typing import IO, Any, BinaryIO, Generator, Sequence, Type, TypeVar, overload
from typing_extensions import Literal
if sys.version_info >= (3, 9):
@@ -20,7 +20,7 @@ if sys.version_info >= (3, 9):
_P = TypeVar("_P", bound=PurePath)
class PurePath(PathLike[str]):
parts: Tuple[str, ...]
parts: tuple[str, ...]
drive: str
root: str
anchor: str