mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-10 18:36:31 +08:00
Drop Python 3.8 support in typeshed utilities (#13774)
This commit is contained in:
@@ -10,8 +10,8 @@ import urllib.parse
|
||||
from collections.abc import Mapping
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import Final, NamedTuple, final
|
||||
from typing_extensions import Annotated, TypeGuard
|
||||
from typing import Annotated, Final, NamedTuple, final
|
||||
from typing_extensions import TypeGuard
|
||||
|
||||
import tomli
|
||||
import tomlkit
|
||||
|
||||
@@ -7,7 +7,7 @@ import sys
|
||||
from collections.abc import Iterable, Mapping
|
||||
from functools import lru_cache
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, Final, NamedTuple, Tuple
|
||||
from typing import Any, Final, NamedTuple
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
import pathspec
|
||||
@@ -111,8 +111,8 @@ def get_mypy_req() -> str:
|
||||
# Parsing the stdlib/VERSIONS file
|
||||
# ====================================================================
|
||||
|
||||
VersionTuple: TypeAlias = Tuple[int, int]
|
||||
SupportedVersionsDict: TypeAlias = Dict[str, Tuple[VersionTuple, VersionTuple]]
|
||||
VersionTuple: TypeAlias = tuple[int, int]
|
||||
SupportedVersionsDict: TypeAlias = dict[str, tuple[VersionTuple, VersionTuple]]
|
||||
|
||||
VERSIONS_PATH = STDLIB_PATH / "VERSIONS"
|
||||
VERSION_LINE_RE = re.compile(r"^([a-zA-Z_][a-zA-Z0-9_.]*): ([23]\.\d{1,2})-([23]\.\d{1,2})?$")
|
||||
|
||||
Reference in New Issue
Block a user