From 6f29d1154d0d0df99eb28ae6e836b65417baaec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 12 Nov 2018 15:30:56 +0100 Subject: [PATCH] server: Add some type definitions. --- matrix/server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix/server.py b/matrix/server.py index 78de798..661933b 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -245,7 +245,7 @@ class MatrixServer(object): self.send_buffer = b"" # type: bytes self.device_check_timestamp = None # type: Optional[int] - self.device_deletion_queue = dict() + self.device_deletion_queue = dict() # type: Dict[str, str] self.encryption_queue = defaultdict(deque) \ # type: DefaultDict[str, Deque[EncrytpionQueueItem]] @@ -257,8 +257,8 @@ class MatrixServer(object): self.lazy_load_hook = None # type: Optional[str] self.partial_sync_hook = None # type: Optional[str] - self.keys_claimed = defaultdict(bool) - self.group_session_shared = defaultdict(bool) + self.keys_claimed = defaultdict(bool) # type: Dict[str, bool] + self.group_session_shared = defaultdict(bool) # type: Dict[str, bool] self.config = ServerConfig(self.name, config_ptr) self._create_session_dir()