Skip to content

Drop Python 3.8 support in typeshed utilities #13774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ts_utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
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
Expand Down
6 changes: 3 additions & 3 deletions lib/ts_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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
Expand Down Expand Up @@ -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})?$")
Expand Down
3 changes: 2 additions & 1 deletion scripts/sync_protobuf/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

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

Expand Down
4 changes: 2 additions & 2 deletions tests/mypy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
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
Expand Down