Drop Python 3.8 support in typeshed utilities (#13774)

This commit is contained in:
Brian Schubert
2025-04-02 10:09:17 -04:00
committed by GitHub
parent 5d15355717
commit c7ab79ed1b
4 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -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
+3 -3
View File
@@ -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})?$")
+2 -1
View File
@@ -2,8 +2,9 @@ from __future__ import annotations
import subprocess
import sys
from collections.abc import Iterable
from http.client import HTTPResponse
from typing import TYPE_CHECKING, Iterable
from typing import TYPE_CHECKING
from urllib.request import urlopen
from zipfile import ZipFile
+2 -2
View File
@@ -18,8 +18,8 @@ from enum import Enum
from itertools import product
from pathlib import Path
from threading import Lock
from typing import Any, NamedTuple
from typing_extensions import Annotated, TypeAlias
from typing import Annotated, Any, NamedTuple
from typing_extensions import TypeAlias
import tomli
from packaging.requirements import Requirement