Remove more Python 3.5 compatibility

This commit is contained in:
Tulir Asokan
2019-07-09 22:15:24 +03:00
parent be6d395ed6
commit e0d3c940f8
9 changed files with 172 additions and 108 deletions
+5 -2
View File
@@ -23,10 +23,13 @@ from .db import RoomState, UserProfile
class SQLStateStore(StateStore):
profile_cache: Dict[Tuple[str, str], UserProfile]
room_state_cache: Dict[str, RoomState]
def __init__(self) -> None:
super().__init__()
self.profile_cache = {} # type: Dict[Tuple[str, str], UserProfile]
self.room_state_cache = {} # type: Dict[str, RoomState]
self.profile_cache = {}
self.room_state_cache = {}
@staticmethod
def is_registered(user: MatrixUserID) -> bool: