From 0e66455cce02feb330514408dffdbc5d145d419c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 9 Aug 2018 17:51:32 +0200 Subject: [PATCH] matrix: Mypy fixes. --- matrix/bar_items.py | 2 -- matrix/server.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/matrix/bar_items.py b/matrix/bar_items.py index 5ae77b2..5a45547 100644 --- a/matrix/bar_items.py +++ b/matrix/bar_items.py @@ -15,10 +15,8 @@ # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. from __future__ import unicode_literals -from builtins import str from matrix.utf import utf8_decode -from matrix.utils import key_from_value from matrix.globals import W, SERVERS diff --git a/matrix/server.py b/matrix/server.py index 1a46e0d..c0c24a0 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -465,7 +465,7 @@ class MatrixServer(object): self.sync_time = time.time() def sync(self, timeout=None, filter=None): - # type: Optional[int] -> None + # type: (Optional[int], Optional[Dict[Any, Any]]) -> None self.sync_time = None _, request = self.client.sync(timeout, filter) self.send_or_queue(request) @@ -509,7 +509,7 @@ class MatrixServer(object): self.send_or_queue(request) def room_send_message(self, room_buffer, formatted, msgtype="m.text"): - # type: (RoomBuffer, Formatted) -> None + # type: (RoomBuffer, Formatted, str) -> None if room_buffer.room.encrypted: return