mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Remove nearly all __str__ and __repr__ methods from typeshed (#6968)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user