Use Mapping in assertDictEqual (#5088)

This commit is contained in:
Mark Vismonte
2021-03-04 15:52:21 -08:00
committed by GitHub
parent 2b19c761ec
commit ea7f1f9c2d

View File

@@ -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: ...