mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Use Mapping in assertDictEqual (#5088)
This commit is contained in:
@@ -9,7 +9,6 @@ from typing import (
|
||||
Callable,
|
||||
Container,
|
||||
ContextManager,
|
||||
Dict,
|
||||
FrozenSet,
|
||||
Generic,
|
||||
Iterable,
|
||||
@@ -183,7 +182,7 @@ class TestCase:
|
||||
def assertSetEqual(
|
||||
self, set1: Union[Set[Any], FrozenSet[Any]], set2: Union[Set[Any], FrozenSet[Any]], msg: Any = ...
|
||||
) -> None: ...
|
||||
def assertDictEqual(self, d1: Dict[Any, Any], d2: Dict[Any, Any], msg: Any = ...) -> None: ...
|
||||
def assertDictEqual(self, d1: Mapping[Any, object], d2: Mapping[Any, object], msg: Any = ...) -> None: ...
|
||||
def fail(self, msg: Any = ...) -> NoReturn: ...
|
||||
def countTestCases(self) -> int: ...
|
||||
def defaultTestResult(self) -> unittest.result.TestResult: ...
|
||||
|
||||
Reference in New Issue
Block a user