Remove redundant __str__ methods (#8475)

This commit is contained in:
Nikita Sobolev
2022-08-03 14:45:16 +03:00
committed by GitHub
parent 65dadac46d
commit 38c4a1ece2

View File

@@ -15,7 +15,6 @@ 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 _cmp(self: Self, other: Self | str) -> bool: ...
class LooseVersion(Version):
@@ -24,5 +23,4 @@ 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 _cmp(self: Self, other: Self | str) -> bool: ...