Fix to pyOpenSSL stubs to pass stubtest#5657
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.
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.
It seems I've figured out what's going on and proposed a fix:
python/mypy#10663
srittau
left a comment
There was a problem hiding this comment.
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.