mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Stdlib: add many missing __hash__ and __eq__ methods (#10464)
This commit is contained in:
@@ -86,6 +86,7 @@ class TestCase:
|
||||
_testMethodDoc: str
|
||||
def __init__(self, methodName: str = "runTest") -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def setUp(self) -> None: ...
|
||||
def tearDown(self) -> None: ...
|
||||
@classmethod
|
||||
@@ -304,6 +305,8 @@ class FunctionTestCase(TestCase):
|
||||
description: str | None = None,
|
||||
) -> None: ...
|
||||
def runTest(self) -> None: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class _AssertRaisesContext(Generic[_E]):
|
||||
exception: _E
|
||||
|
||||
Reference in New Issue
Block a user