[mailscripts] Issue with GSSAPI change
Robbie Harwood
rharwood at redhat.com
Mon May 4 19:57:55 BST 2020
Sean Whitton <spwhitton at spwhitton.name> writes:
> Hello,
>
> Looks like none of us ran the type checks on the recent GSSAPI patch to
> imap-dl:
>
> spwhitton at iris:~/src/mailscripts/>mypy --strict ./imap-dl
> imap-dl:48: error: No library stub file for standard library module 'mailbox'
> imap-dl:48: note: (Stub files are from https://github.com/python/typeshed)
> imap-dl:172: error: Argument "fallback" to "get" of "RawConfigParser" has incompatible type "None"; expected "str"
> imap-dl:182: error: Argument "fallback" to "get" of "RawConfigParser" has incompatible type "None"; expected "str"
> imap-dl:188: error: Argument "fallback" to "get" of "RawConfigParser" has incompatible type "int"; expected "str"
> imap-dl:252: error: Argument 2 to "uid" of "IMAP4" has incompatible type "str"; expected "List[str]"
> imap-dl:252: error: Argument 3 to "uid" of "IMAP4" has incompatible type "str"; expected "List[str]"
> imap-dl:303: error: Argument 2 to "uid" of "IMAP4" has incompatible type "str"; expected "List[str]"
> imap-dl:303: error: Argument 3 to "uid" of "IMAP4" has incompatible type "str"; expected "List[str]"
> imap-dl:303: error: Argument 4 to "uid" of "IMAP4" has incompatible type "str"; expected "List[str]"
> 1 spwhitton at iris:~/src/mailscripts/>
>
> Would be grateful for a patch so I can release mailscripts with the new
> functionality. Thanks.
This is an update to imaplib, it seems.
Patch attached. While I have tested this with my setup, someone who
uses builtin auth should test and tweak as needed (I can't easily check
that codepath).
Thanks,
--Robbie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/sgo-software-discuss/attachments/20200504/54a879c3/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v1-imap-dl-update-for-imaplib-type-changes.patch
Type: text/x-diff
Size: 3720 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/sgo-software-discuss/attachments/20200504/54a879c3/attachment.patch>
More information about the sgo-software-discuss
mailing list