Skip to content

errors in imaplib.pyi #3289

@lddubeau

Description

@lddubeau

I've noticed the following errors in imaplib.pyi

  1. Variable lists of parameters are incorrectly typed. Example:

    def uid(self, command: str, *args: List[str]) -> CommandResults: ...
    

    Right now it the elements that make up args have to be lists of strings, when they just should be strings. The declaration should be:

    def uid(self, command: str, *args: str) -> CommandResults: ...
    

    Other methods with the same bug: setannotation, sort, thread and xatom.

  2. From Python 3.3 onwards IMAP4_SSL's constructor allows a ssl_context= named parameter but this parameter is not defined in the stub file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions