mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-09 00:32:38 -04:00
Add missing type hints for tests.events. (#14904)
This commit is contained in:
parent
8bc5d1406c
commit
3c3ba31507
6 changed files with 91 additions and 64 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue