mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-17 07:14:12 +08:00
Remove unneeded # noqa comments, fix broken # noqa comments (#7561)
This commit is contained in:
@@ -35,7 +35,7 @@ arm: Any
|
||||
has_refcount_gc: Any
|
||||
contextmanager = contextlib.contextmanager
|
||||
dottedgetter = operator.attrgetter
|
||||
namedtuple = collections.namedtuple # noqa Y024
|
||||
namedtuple = collections.namedtuple # noqa: Y024
|
||||
next = builtins.next
|
||||
|
||||
class FullArgSpec(NamedTuple):
|
||||
|
||||
@@ -43,7 +43,7 @@ async def mkdir(
|
||||
*,
|
||||
dir_fd: int | None = ...,
|
||||
loop: AbstractEventLoop | None = ...,
|
||||
executor: Any = ..., # noqa: F811
|
||||
executor: Any = ...,
|
||||
) -> None: ...
|
||||
async def makedirs(
|
||||
name: StrOrBytesPath, mode: int = ..., exist_ok: bool = ..., *, loop: AbstractEventLoop | None = ..., executor: Any = ...
|
||||
|
||||
@@ -3,7 +3,7 @@ import ast
|
||||
from typing import Any, Generic, Iterable, Iterator, TypeVar
|
||||
|
||||
FLAKE8_ERROR = tuple[int, int, str, type[Any]]
|
||||
TConfig = TypeVar("TConfig") # noqa: Y001
|
||||
TConfig = TypeVar("TConfig") # noqa: Y001 # Name of the TypeVar matches the name at runtime
|
||||
|
||||
class Error:
|
||||
code: str
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import http.client
|
||||
from _typeshed import Self
|
||||
from collections.abc import Generator
|
||||
from typing import Any, TypeVar
|
||||
from typing import Any
|
||||
|
||||
from .error import *
|
||||
|
||||
# Should use _typeshed.Self when google/pytype#952 is fixed.
|
||||
Self = TypeVar("Self") # noqa Y001
|
||||
|
||||
__author__: str
|
||||
__copyright__: str
|
||||
__contributors__: list[str]
|
||||
|
||||
Reference in New Issue
Block a user