mypy: Remove some now-unnecessary type: ignores.

This commit is contained in:
Tim Abbott 2018-03-28 10:39:05 -07:00
parent df857fb214
commit c94deff920
3 changed files with 3 additions and 3 deletions

View File

@ -315,7 +315,7 @@ def queue_json_publish(queue_name: str,
else: else:
# Must be imported here: A top section import leads to obscure not-defined-ish errors. # Must be imported here: A top section import leads to obscure not-defined-ish errors.
from zerver.worker.queue_processors import get_worker from zerver.worker.queue_processors import get_worker
get_worker(queue_name).consume_wrapper(event) # type: ignore # https://github.com/python/mypy/issues/3360 get_worker(queue_name).consume_wrapper(event)
def retry_event(queue_name: str, def retry_event(queue_name: str,
event: Dict[str, Any], event: Dict[str, Any],

View File

@ -57,7 +57,7 @@ def get_imap_messages() -> Generator[Message, None, None]:
msg_as_bytes = msg_data[0][1] msg_as_bytes = msg_data[0][1]
message = email.message_from_bytes(msg_as_bytes) message = email.message_from_bytes(msg_as_bytes)
yield message yield message
mbox.store(msgid, '+FLAGS', '\\Deleted') # type: ignore # https://github.com/python/typeshed/pull/1762 mbox.store(msgid, '+FLAGS', '\\Deleted')
mbox.expunge() mbox.expunge()
finally: finally:
mbox.close() mbox.close()

View File

@ -43,7 +43,7 @@ class TypesPrintTest(TestCase):
def empty_func() -> None: def empty_func() -> None:
pass pass
self.check_signature("empty_func() -> None", None, empty_func) self.check_signature("empty_func() -> None", None, empty_func)
self.check_signature("<lambda>() -> None", None, (lambda: None)) # type: ignore # https://github.com/python/mypy/issues/1932 self.check_signature("<lambda>() -> None", None, (lambda: None))
def test_basic(self) -> None: def test_basic(self) -> None:
self.check_signature("add(float, int) -> float", self.check_signature("add(float, int) -> float",