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

Fix type for imaplib.IMAP4.error and related #2273

Merged
merged 1 commit into from
Jun 22, 2018

Conversation

nakamuray
Copy link
Contributor

fix #2268

error: Exception
abort: Exception
readonly: Exception
error: Type[Exception] = ...
Copy link
Member

Choose a reason for hiding this comment

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

Does it work you follow the implementation more closely and write class error(Exception): ... here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried, but that broke pytype_test.py. Error below:

stdlib/2and3/imaplib.pyi: ParseError: syntax error, unexpected CLASS, expecting DEF or '@'

Copy link
Member

Choose a reason for hiding this comment

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

Oh well. In that case, the current code should be OK.

@JelleZijlstra JelleZijlstra merged commit 16ed540 into python:master Jun 22, 2018
@JelleZijlstra
Copy link
Member

Thanks for your PR!

yedpodtrzitko pushed a commit to yedpodtrzitko/typeshed that referenced this pull request Jan 23, 2019
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.

imaplib.IMAP4.error is defined as Exception instance in stub
2 participants