Skip to content
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
7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,6 @@ 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
Expand Down Expand Up @@ -238,6 +232,7 @@ ignore = [
"D", # pydocstyle
# See comment on black's force-exclude config above
"E501", # Line too long
"UP036", # Remove unnecessary `sys.version_info` blocks
]

[tool.ruff.lint.pydocstyle]
Expand Down
2 changes: 1 addition & 1 deletion stdlib/_collections_abc.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from abc import abstractmethod
from types import MappingProxyType
from typing import ( # noqa: Y022,Y038,UP035,Y057,RUF100
from typing import ( # noqa: Y022,Y038,UP035,Y057
AbstractSet as Set,
AsyncGenerator as AsyncGenerator,
AsyncIterable as AsyncIterable,
Expand Down
4 changes: 2 additions & 2 deletions stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import _typeshed
import sys
from _typeshed import SupportsWrite
from collections.abc import Callable
from typing import Any, Literal, ParamSpec, TypeVar
from typing_extensions import Concatenate, deprecated
from typing import Any, Concatenate, Literal, ParamSpec, TypeVar
from typing_extensions import deprecated

_T = TypeVar("_T")
_R_co = TypeVar("_R_co", covariant=True)
Expand Down
14 changes: 3 additions & 11 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ from types import CellType, CodeType, EllipsisType, GenericAlias, NotImplemented

# mypy crashes if any of {ByteString, Sequence, MutableSequence, Mapping, MutableMapping}
# are imported from collections.abc in builtins.pyi
from typing import ( # noqa: Y022,UP035,RUF100
from typing import ( # noqa: Y022,UP035
IO,
Any,
BinaryIO,
ClassVar,
Concatenate,
Final,
Generic,
Mapping,
Expand All @@ -64,16 +65,7 @@ from typing import ( # noqa: Y022,UP035,RUF100
)

# we can't import `Literal` from typing or mypy crashes: see #11247
from typing_extensions import ( # noqa: Y023
Concatenate,
Literal,
LiteralString,
Self,
TypeIs,
TypeVarTuple,
deprecated,
disjoint_base,
)
from typing_extensions import Literal, LiteralString, Self, TypeIs, TypeVarTuple, deprecated, disjoint_base # noqa: Y023, UP035

if sys.version_info >= (3, 14):
from _typeshed import AnnotateFunc
Expand Down
3 changes: 1 addition & 2 deletions stdlib/curses/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ from _curses import *
from _curses import window as window
from _typeshed import structseq
from collections.abc import Callable
from typing import Final, ParamSpec, TypeVar, final, type_check_only
from typing_extensions import Concatenate
from typing import Concatenate, Final, ParamSpec, TypeVar, final, type_check_only

# NOTE: The _curses module is ordinarily only available on Unix, but the
# windows-curses package makes it available on Windows as well with the same
Expand Down
2 changes: 1 addition & 1 deletion stdlib/typing_extensions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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, UnionType
from typing import ( # noqa: Y022,Y037,Y038,Y039,UP035,RUF100
from typing import ( # noqa: Y022,Y037,Y038,Y039,UP035
IO as IO,
TYPE_CHECKING as TYPE_CHECKING,
AbstractSet as AbstractSet,
Expand Down
4 changes: 2 additions & 2 deletions stubs/WebOb/webob/dec.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
from collections.abc import Callable, Iterable, Mapping
from typing import Any, Generic, ParamSpec, TypeAlias, overload, type_check_only
from typing_extensions import Concatenate, Never, Self, TypeVar
from typing import Any, Concatenate, Generic, ParamSpec, TypeAlias, overload, type_check_only
from typing_extensions import Never, Self, TypeVar

from webob.request import BaseRequest, Request
from webob.response import Response
Expand Down
3 changes: 1 addition & 2 deletions stubs/seaborn/seaborn/_core/groupby.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Callable, Hashable, Mapping
from typing import ParamSpec, TypeAlias
from typing_extensions import Concatenate
from typing import Concatenate, ParamSpec, TypeAlias

from numpy import ufunc
from pandas import DataFrame
Expand Down
4 changes: 2 additions & 2 deletions stubs/seaborn/seaborn/axisgrid.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
from _typeshed import Incomplete
from collections.abc import Callable, Generator, Iterable, Mapping
from typing import IO, Any, Literal, ParamSpec, TypeAlias, TypeVar
from typing_extensions import Concatenate, Self, deprecated
from typing import IO, Any, Concatenate, Literal, ParamSpec, TypeAlias, TypeVar
from typing_extensions import Self, deprecated

import numpy as np
from matplotlib.artist import Artist
Expand Down
Loading