Skip to content

Commit a6fba4f

Browse files
authored
Update project.requires-python to >=3.10 (#15402)
1 parent da6e5e9 commit a6fba4f

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://github.com/astral-sh/uv/issues/8666
44
name = "typeshed"
55
version = "0"
6-
requires-python = ">=3.9" # Minimum version to run tests, used by uv run
6+
requires-python = ">=3.10" # Minimum version to run tests, used by uv run
77

88
[tool.black]
99
line-length = 130
@@ -147,6 +147,12 @@ extend-safe-fixes = [
147147
"UP036", # Remove unnecessary `sys.version_info` blocks
148148
]
149149
ignore = [
150+
###
151+
# TODO: Disabled temporarily, until Python 3.9 support is fully removed in
152+
# May 2026.
153+
###
154+
"UP035", # import from typing
155+
"UP036", # Remove unnecessary `sys.version_info` blocks
150156
###
151157
# Rules that can conflict with the formatter (Black)
152158
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

stdlib/_collections_abc.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from abc import abstractmethod
33
from types import MappingProxyType
4-
from typing import ( # noqa: Y022,Y038,UP035,Y057
4+
from typing import ( # noqa: Y022,Y038,UP035,Y057,RUF100
55
AbstractSet as Set,
66
AsyncGenerator as AsyncGenerator,
77
AsyncIterable as AsyncIterable,

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ from types import CellType, CodeType, GenericAlias, TracebackType
3737

3838
# mypy crashes if any of {ByteString, Sequence, MutableSequence, Mapping, MutableMapping}
3939
# are imported from collections.abc in builtins.pyi
40-
from typing import ( # noqa: Y022,UP035
40+
from typing import ( # noqa: Y022,UP035,RUF100
4141
IO,
4242
Any,
4343
BinaryIO,

stdlib/typing_extensions.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ from collections.abc import (
3030
from contextlib import AbstractAsyncContextManager as AsyncContextManager, AbstractContextManager as ContextManager
3131
from re import Match as Match, Pattern as Pattern
3232
from types import GenericAlias, ModuleType
33-
from typing import ( # noqa: Y022,Y037,Y038,Y039,UP035
33+
from typing import ( # noqa: Y022,Y037,Y038,Y039,UP035,RUF100
3434
IO as IO,
3535
TYPE_CHECKING as TYPE_CHECKING,
3636
AbstractSet as AbstractSet,

0 commit comments

Comments
 (0)