Skip to content

errors in imaplib.pyi #3289

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.

Activity

  1. srittau commented on Oct 1, 2019

    @srittau
    Collaborator

    PRs welcome!

  2. added
    stubs: false positive
    on Oct 1, 2019
  3. vVv-AA commented on Oct 4, 2019

    @vVv-AA

    uid has the same issue too right?

  4. added a commit that references this issue on Oct 5, 2019
    9d2eab4
  5. added a commit that references this issue on Oct 5, 2019
    79a8f0b
  6. added 7 commits that reference this issue on Oct 5, 2019
    7dbac8f
    15df951
    04043e0
    577a331
    a784083
    5ababde
    499300c
  7. added a commit that references this issue on Oct 6, 2019
    717cd1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: false positive

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions