Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve imaplib return types #3670

Merged
merged 5 commits into from
Feb 22, 2020
Merged

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Jan 28, 2020

Mark CommandResults as obsolete.

Also fix types of tagged_commands and untagged_responses.

Based on a discussion in #3655.

Mark CommandResults as obsolete.

Also fix types of tagged_commands and untagged_responses.

Based on a discussion in python#3655.
Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few comments. I'm not sure how to verify the various return types but I trust that you got them right.

stdlib/2and3/imaplib.pyi Outdated Show resolved Hide resolved
stdlib/2and3/imaplib.pyi Outdated Show resolved Hide resolved
@srittau
Copy link
Collaborator Author

srittau commented Feb 22, 2020

@JelleZijlstra I tried to figure the response types with a mix of experiments and reading the (rather hard to follow) code. I am reasonably content that they are correct.

@srittau
Copy link
Collaborator Author

srittau commented Feb 22, 2020

I am a bit confused, why CI is even running stubtest, as this branch precedes stubtest. .travis.yml for this branch does not include stubtest and there is no tests/stubtest_whitelists directory to reference. Anyway, I am restarting CI.

@JelleZijlstra JelleZijlstra merged commit ca9505c into python:master Feb 22, 2020
@srittau srittau deleted the imaplib-return branch February 22, 2020 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants