Skip to content

Commit 2a40de2

Browse files
committed
Move RUF100 disable into noqa comments
1 parent d0af392 commit 2a40de2

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ ignore = [
153153
###
154154
"UP035", # import from typing
155155
"UP036", # Remove unnecessary `sys.version_info` blocks
156-
"RUF100", # Remove unused `noqa` directive
157156
###
158157
# Rules that can conflict with the formatter (Black)
159158
# 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)