Remove unneeded # noqa comments, fix broken # noqa comments (#7561)

This commit is contained in:
Alex Waygood
2022-03-28 22:17:44 +01:00
committed by GitHub
parent 478e7527aa
commit a3245db63c
15 changed files with 25 additions and 27 deletions

View File

@@ -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):

View File

@@ -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 = ...

View File

@@ -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

View File

@@ -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]