diff options
author | Erik Johnston <erik@matrix.org> | 2020-01-16 13:31:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 13:31:22 +0000 |
commit | d386f2f339c839ff6ec8d656492dd635dc26f811 (patch) | |
tree | f127b8130fb9d778d863300e97c3ac55945e2e61 /synapse/api | |
parent | Add tips for the changelog to the pull request template (#6663) (diff) | |
download | synapse-d386f2f339c839ff6ec8d656492dd635dc26f811.tar.xz |
Add StateMap type alias (#6715)
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/auth.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index abbc7079a3..2cbfab2569 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -14,7 +14,6 @@ # limitations under the License. import logging -from typing import Dict, Tuple from six import itervalues @@ -35,7 +34,7 @@ from synapse.api.errors import ( ResourceLimitError, ) from synapse.config.server import is_threepid_reserved -from synapse.types import UserID +from synapse.types import StateMap, UserID from synapse.util.caches import CACHE_SIZE_FACTOR, register_cache from synapse.util.caches.lrucache import LruCache from synapse.util.metrics import Measure @@ -509,10 +508,7 @@ class Auth(object): return self.store.is_server_admin(user) def compute_auth_events( - self, - event, - current_state_ids: Dict[Tuple[str, str], str], - for_verification: bool = False, + self, event, current_state_ids: StateMap[str], for_verification: bool = False, ): """Given an event and current state return the list of event IDs used to auth an event. |