Remove nearly all __str__ and __repr__ methods from typeshed (#6968)

This commit is contained in:
Alex Waygood
2022-01-19 23:45:11 +00:00
committed by GitHub
parent fe6233a8c3
commit aea52b35d1
27 changed files with 11 additions and 72 deletions

View File

@@ -3,7 +3,6 @@ from abc import abstractmethod
from typing import Pattern
class Version:
def __repr__(self) -> str: ...
def __eq__(self, other: object) -> bool: ...
def __lt__(self: Self, other: Self | str) -> bool: ...
def __le__(self: Self, other: Self | str) -> bool: ...
@@ -24,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: ...
def __str__(self) -> str: ... # noqa Y029
def _cmp(self: Self, other: Self | str) -> bool: ...
class LooseVersion(Version):
@@ -33,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: ...
def __str__(self) -> str: ... # noqa Y029
def _cmp(self: Self, other: Self | str) -> bool: ...