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

+2 -2
View File
@@ -7,7 +7,7 @@ from email.message import Message
from importlib.abc import MetaPathFinder
from os import PathLike
from pathlib import Path
from typing import Any, ClassVar, Iterable, NamedTuple, Pattern, Tuple, overload
from typing import Any, ClassVar, Iterable, NamedTuple, Pattern, overload
if sys.version_info >= (3, 10):
from importlib.metadata._meta import PackageMetadata as PackageMetadata
@@ -101,6 +101,6 @@ if sys.version_info >= (3, 8):
) -> Iterable[Distribution]: ...
def metadata(distribution_name: str) -> Message: ...
def version(distribution_name: str) -> str: ...
def entry_points() -> dict[str, Tuple[EntryPoint, ...]]: ...
def entry_points() -> dict[str, tuple[EntryPoint, ...]]: ...
def files(distribution_name: str) -> list[PackagePath] | None: ...
def requires(distribution_name: str) -> list[str] | None: ...