Update project.requires-python to >=3.10 (#15402)

This commit is contained in:
Sebastian Rittau
2026-02-09 16:48:13 +01:00
committed by GitHub
parent da6e5e9d8a
commit a6fba4f147
4 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -3,7 +3,7 @@
# https://github.com/astral-sh/uv/issues/8666
name = "typeshed"
version = "0"
requires-python = ">=3.9" # Minimum version to run tests, used by uv run
requires-python = ">=3.10" # Minimum version to run tests, used by uv run
[tool.black]
line-length = 130
@@ -147,6 +147,12 @@ extend-safe-fixes = [
"UP036", # Remove unnecessary `sys.version_info` blocks
]
ignore = [
###
# TODO: Disabled temporarily, until Python 3.9 support is fully removed in
# May 2026.
###
"UP035", # import from typing
"UP036", # Remove unnecessary `sys.version_info` blocks
###
# Rules that can conflict with the formatter (Black)
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
+1 -1
View File
@@ -1,7 +1,7 @@
import sys
from abc import abstractmethod
from types import MappingProxyType
from typing import ( # noqa: Y022,Y038,UP035,Y057
from typing import ( # noqa: Y022,Y038,UP035,Y057,RUF100
AbstractSet as Set,
AsyncGenerator as AsyncGenerator,
AsyncIterable as AsyncIterable,
+1 -1
View File
@@ -37,7 +37,7 @@ from types import CellType, CodeType, GenericAlias, TracebackType
# mypy crashes if any of {ByteString, Sequence, MutableSequence, Mapping, MutableMapping}
# are imported from collections.abc in builtins.pyi
from typing import ( # noqa: Y022,UP035
from typing import ( # noqa: Y022,UP035,RUF100
IO,
Any,
BinaryIO,
+1 -1
View File
@@ -30,7 +30,7 @@ from collections.abc import (
from contextlib import AbstractAsyncContextManager as AsyncContextManager, AbstractContextManager as ContextManager
from re import Match as Match, Pattern as Pattern
from types import GenericAlias, ModuleType
from typing import ( # noqa: Y022,Y037,Y038,Y039,UP035
from typing import ( # noqa: Y022,Y037,Y038,Y039,UP035,RUF100
IO as IO,
TYPE_CHECKING as TYPE_CHECKING,
AbstractSet as AbstractSet,