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

poplib.POP3_SSL.stls unconditionally raises an exception #7191

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

AlexWaygood
Copy link
Member

Source code here: https://github.com/python/cpython/blob/0ae40191793da1877a12d512f0116d99301b2c51/Lib/poplib.py#L460

We have to keep the method in the stub, as it's overriding a method in the superclass that doesn't unconditionally raise.

Source code here: https://github.com/python/cpython/blob/0ae40191793da1877a12d512f0116d99301b2c51/Lib/poplib.py#L460

We have to keep the method in the stub, as it's overriding a method in the superclass that doesn't unconditionally raise.
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra
Copy link
Member

This would be better fixed with python/typing#1043, but I guess we can go with NoReturn for now.

@AlexWaygood
Copy link
Member Author

This would be better fixed with python/typing#1043, but I guess we can go with NoReturn for now.

My thoughts precisely.

@JelleZijlstra JelleZijlstra merged commit fef3a71 into python:master Feb 16, 2022
@AlexWaygood AlexWaygood deleted the patch-2 branch February 16, 2022 15:09
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.

2 participants