mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 13:51:30 +08:00
stdlib: Add many missing dunder overrides (#7231)
This commit is contained in:
@@ -47,6 +47,7 @@ class Example:
|
||||
options: dict[int, bool] | None = ...,
|
||||
) -> None: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class DocTest:
|
||||
examples: list[Example]
|
||||
@@ -66,6 +67,7 @@ class DocTest:
|
||||
) -> None: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __lt__(self, other: DocTest) -> bool: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class DocTestParser:
|
||||
def parse(self, string: str, name: str = ...) -> list[str | Example]: ...
|
||||
@@ -172,6 +174,7 @@ class DocTestCase(unittest.TestCase):
|
||||
def debug(self) -> None: ...
|
||||
def id(self) -> str: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def shortDescription(self) -> str: ...
|
||||
|
||||
class SkipDocTestCase(DocTestCase):
|
||||
|
||||
Reference in New Issue
Block a user