summary refs log tree commit diff
path: root/synapse/events/utils.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-01-25 15:14:03 -0500
committerGitHub <noreply@github.com>2023-01-25 15:14:03 -0500
commit3c3ba31507cbff27064ea3c6cf1e7add9583556a (patch)
treee75605d1d022d4eb60c7328eacf027e20ae151a7 /synapse/events/utils.py
parentDocument how to handle Dependabot pull requests. (#14916) (diff)
downloadsynapse-3c3ba31507cbff27064ea3c6cf1e7add9583556a.tar.xz
Add missing type hints for tests.events. (#14904)
Diffstat (limited to 'synapse/events/utils.py')
-rw-r--r--synapse/events/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index ae57a4df5e..52e4b467e8 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -605,10 +605,11 @@ class EventClientSerializer:
 
 
 _PowerLevel = Union[str, int]
+PowerLevelsContent = Mapping[str, Union[_PowerLevel, Mapping[str, _PowerLevel]]]
 
 
 def copy_and_fixup_power_levels_contents(
-    old_power_levels: Mapping[str, Union[_PowerLevel, Mapping[str, _PowerLevel]]]
+    old_power_levels: PowerLevelsContent,
 ) -> Dict[str, Union[int, Dict[str, int]]]:
     """Copy the content of a power_levels event, unfreezing frozendicts along the way.