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

@@ -23,7 +23,7 @@ class StrictVersion(Version):
prerelease: tuple[str, int] | None
def __init__(self, vstring: str | None = ...) -> None: ...
def parse(self: Self, vstring: str) -> Self: ...
def __str__(self) -> str: ... # noqa Y029
def __str__(self) -> str: ... # noqa: Y029
def _cmp(self: Self, other: Self | str) -> bool: ...
class LooseVersion(Version):
@@ -32,5 +32,5 @@ class LooseVersion(Version):
version: tuple[str | int, ...]
def __init__(self, vstring: str | None = ...) -> None: ...
def parse(self: Self, vstring: str) -> Self: ...
def __str__(self) -> str: ... # noqa Y029
def __str__(self) -> str: ... # noqa: Y029
def _cmp(self: Self, other: Self | str) -> bool: ...