mypy: Remove type ignore for merged typeshed PR 1762.

This commit is contained in:
neiljp (Neil Pilgrim) 2019-08-02 19:20:01 +00:00 committed by Tim Abbott
parent 6b4300904a
commit ba54e20def
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def get_imap_messages() -> Generator[Message, None, None]:
try: try:
mbox.select(settings.EMAIL_GATEWAY_IMAP_FOLDER) mbox.select(settings.EMAIL_GATEWAY_IMAP_FOLDER)
try: try:
status, num_ids_data = mbox.search(None, 'ALL') # type: ignore # https://github.com/python/typeshed/pull/1762 status, num_ids_data = mbox.search(None, 'ALL')
for msgid in num_ids_data[0].split(): for msgid in num_ids_data[0].split():
status, msg_data = mbox.fetch(msgid, '(RFC822)') status, msg_data = mbox.fetch(msgid, '(RFC822)')
msg_as_bytes = msg_data[0][1] msg_as_bytes = msg_data[0][1]