mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 20:15:04 -04:00
Update mypy to 0.950 and fix complaints (#12650)
This commit is contained in:
parent
c2d50e9f6c
commit
2607b3e181
10 changed files with 98 additions and 57 deletions
|
@ -147,7 +147,9 @@ class PresenceRouter:
|
|||
# run all the callbacks for get_users_for_states and combine the results
|
||||
for callback in self._get_users_for_states_callbacks:
|
||||
try:
|
||||
result = await callback(state_updates)
|
||||
# Note: result is an object here, because we don't trust modules to
|
||||
# return the types they're supposed to.
|
||||
result: object = await callback(state_updates)
|
||||
except Exception as e:
|
||||
logger.warning("Failed to run module API callback %s: %s", callback, e)
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue