matrix: Mypy fixes.

This commit is contained in:
Damir Jelić 2018-08-09 17:51:32 +02:00
parent 1475572c06
commit 0e66455cce
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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