-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix to pyOpenSSL stubs to pass stubtest #5657
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
Conversation
OpenSSL.SSL.Connection.__init__ | ||
OpenSSL.SSL.Context.load_verify_locations | ||
OpenSSL.SSL.Context.set_verify | ||
OpenSSL.crypto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stubtest complains that OpenSSL.crypto
doesn't exist. If you don't want to figure out what's going on with that, you can leave OpenSSL.crypto
in the allowlist for this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems I've figured out what's going on and proposed a fix:
python/mypy#10663
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, be we need to re-add OpenSSL.crypto back per Akuli's comment.
I just wonder, why stubtest complains. Here's the error output:
The root of the problem seems to be here: Should that place in |
Fixing this would be great, of course. |
I've just proposed a workaround to |
Per the feedback on the mypy bug, let's just add the item back in the allowlist. |
…s not going to be merged. See python/mypy#10663.
No description provided.