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

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