summary refs log tree commit diff
path: root/synapse/state
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-09-28 07:01:46 -0400
committerGitHub <noreply@github.com>2023-09-28 07:01:46 -0400
commitcdb89dcefe9f4d7035f898cd77cd514fa69c2673 (patch)
tree941ce3870cd078b240a2f01fc66c3ab99ca0dd50 /synapse/state
parentUse modern config for maturin. (#16394) (diff)
downloadsynapse-cdb89dcefe9f4d7035f898cd77cd514fa69c2673.tar.xz
Improve state types. (#16395)
Diffstat (limited to 'synapse/state')
-rw-r--r--synapse/state/v2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/state/v2.py b/synapse/state/v2.py
index 1752f95db8..b2e63aed1e 100644
--- a/synapse/state/v2.py
+++ b/synapse/state/v2.py
@@ -23,7 +23,6 @@ from typing import (
     Generator,
     Iterable,
     List,
-    Mapping,
     Optional,
     Sequence,
     Set,
@@ -269,7 +268,7 @@ async def _get_power_level_for_sender(
 
 async def _get_auth_chain_difference(
     room_id: str,
-    state_sets: Sequence[Mapping[Any, str]],
+    state_sets: Sequence[StateMap[str]],
     unpersisted_events: Dict[str, EventBase],
     state_res_store: StateResolutionStore,
 ) -> Set[str]:
@@ -405,7 +404,7 @@ def _seperate(
 
     # mypy doesn't understand that discarding None above means that conflicted
     # state is StateMap[Set[str]], not StateMap[Set[Optional[Str]]].
-    return unconflicted_state, conflicted_state  # type: ignore
+    return unconflicted_state, conflicted_state  # type: ignore[return-value]
 
 
 def _is_power_event(event: EventBase) -> bool: