mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Reverts https://github.com/python/typeshed/pull/8465 Fixes https://github.com/python/typeshed/issues/10424 Closes https://github.com/python/typeshed/pull/10425 https://github.com/python/typeshed/pull/8465 caused regressions: see https://github.com/python/typeshed/issues/10424 and https://github.com/python/mypy/issues/13800. Since it didn't fix any known problems (just some stylistic nits that we had), let's just revert the PR.
This commit is contained in:
@@ -85,6 +85,7 @@ class Example:
|
||||
indent: int = 0,
|
||||
options: dict[int, bool] | None = None,
|
||||
) -> None: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class DocTest:
|
||||
@@ -103,6 +104,7 @@ class DocTest:
|
||||
lineno: int | None,
|
||||
docstring: str | None,
|
||||
) -> None: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __lt__(self, other: DocTest) -> bool: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
@@ -210,6 +212,7 @@ class DocTestCase(unittest.TestCase):
|
||||
) -> None: ...
|
||||
def runTest(self) -> None: ...
|
||||
def format_failure(self, err: str) -> str: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class SkipDocTestCase(DocTestCase):
|
||||
|
||||
Reference in New Issue
Block a user