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

Commit 874438c

Browse files
author
David Robertson
committed
Make use of the mypy plugin change
as spotted here #12717 (comment)
1 parent 80cdd6b commit 874438c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

synapse/storage/databases/main/roommember.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import logging
1616
from typing import (
1717
TYPE_CHECKING,
18+
Callable,
1819
Collection,
1920
Dict,
2021
FrozenSet,
@@ -634,7 +635,7 @@ def _get_users_server_still_shares_room_with_txn(
634635
)
635636

636637
async def get_rooms_for_user(
637-
self, user_id: str, on_invalidate=None
638+
self, user_id: str, on_invalidate: Optional[Callable[[], None]] = None
638639
) -> FrozenSet[str]:
639640
"""Returns a set of room_ids the user is currently joined to.
640641

0 commit comments

Comments
 (0)