[mailscripts] Issue with GSSAPI change

Sean Whitton spwhitton at spwhitton.name
Fri May 1 20:25:57 BST 2020


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.

-- 
Sean Whitton
-------------- 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/20200501/b23ea544/attachment.sig>


More information about the sgo-software-discuss mailing list