mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 21:50:21 +08:00
Add __hash__ for a bunch of types that set it to None (#13286)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import unittest.case
|
||||
import unittest.result
|
||||
from collections.abc import Iterable, Iterator
|
||||
from typing import ClassVar
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
_TestType: TypeAlias = unittest.case.TestCase | TestSuite
|
||||
@@ -17,6 +18,7 @@ class BaseTestSuite:
|
||||
def countTestCases(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[_TestType]: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
|
||||
class TestSuite(BaseTestSuite):
|
||||
def run(self, result: unittest.result.TestResult, debug: bool = False) -> unittest.result.TestResult: ...
|
||||
|
||||
Reference in New Issue
Block a user