Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Make use of the mypy plugin change
Browse files Browse the repository at this point in the history
as spotted here
#12717 (comment)
  • Loading branch information
David Robertson committed May 17, 2022
1 parent 80cdd6b commit 874438c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import logging
from typing import (
TYPE_CHECKING,
Callable,
Collection,
Dict,
FrozenSet,
Expand Down Expand Up @@ -634,7 +635,7 @@ def _get_users_server_still_shares_room_with_txn(
)

async def get_rooms_for_user(
self, user_id: str, on_invalidate=None
self, user_id: str, on_invalidate: Optional[Callable[[], None]] = None
) -> FrozenSet[str]:
"""Returns a set of room_ids the user is currently joined to.
Expand Down

0 comments on commit 874438c

Please sign in to comment.