diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-10-23 14:28:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 14:28:05 -0400 |
commit | 3ab861ab9eaf54a336a5a900eeb8402c3e9ed811 (patch) | |
tree | 18d47ad957c59644aa4ec6881f5eab55f675cf8a /tests/unittest.py | |
parent | Fix bug where a new writer advances their token too quickly (#16473) (diff) | |
download | synapse-3ab861ab9eaf54a336a5a900eeb8402c3e9ed811.tar.xz |
Fix type hint errors from Twisted trunk (#16526)
Diffstat (limited to '')
-rw-r--r-- | tests/unittest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py index 99ad02eb06..79c47fc3cc 100644 --- a/tests/unittest.py +++ b/tests/unittest.py @@ -30,6 +30,7 @@ from typing import ( Generic, Iterable, List, + Mapping, NoReturn, Optional, Tuple, @@ -251,7 +252,7 @@ class TestCase(unittest.TestCase): except AssertionError as e: raise (type(e))(f"Assert error for '.{key}':") from e - def assert_dict(self, required: dict, actual: dict) -> None: + def assert_dict(self, required: Mapping, actual: Mapping) -> None: """Does a partial assert of a dict. Args: |