mypy: Remove now-unused type: ignores.

This commit is contained in:
Tim Abbott 2017-02-18 17:01:01 -08:00
parent 9a8dc7c622
commit ca5fa6c9de

View file

@ -445,9 +445,9 @@ class Client(object):
# type: () -> Tuple[str, int] # type: () -> Tuple[str, int]
while True: while True:
if event_types is None: if event_types is None:
res = self.register() # type: ignore res = self.register()
else: else:
res = self.register(event_types=event_types, narrow=narrow) # type: ignore res = self.register(event_types=event_types, narrow=narrow)
if 'error' in res.get('result'): if 'error' in res.get('result'):
if self.verbose: if self.verbose:
@ -461,7 +461,7 @@ class Client(object):
if queue_id is None: if queue_id is None:
(queue_id, last_event_id) = do_register() (queue_id, last_event_id) = do_register()
res = self.get_events(queue_id=queue_id, last_event_id=last_event_id) # type: ignore res = self.get_events(queue_id=queue_id, last_event_id=last_event_id)
if 'error' in res.get('result'): if 'error' in res.get('result'):
if res["result"] == "http-error": if res["result"] == "http-error":
if self.verbose: if self.verbose:
@ -745,7 +745,7 @@ class ZulipStream(object):
"to": self.to, "to": self.to,
"subject": self.subject, "subject": self.subject,
"content": content} "content": content}
self.client.send_message(message) # type: ignore self.client.send_message(message)
def flush(self): def flush(self):
# type: () -> None # type: () -> None