matrix: Mypy fixes.
This commit is contained in:
parent
1475572c06
commit
0e66455cce
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue