mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user