Skip to content

Improved OpenSSL stubs#5645

Merged
srittau merged 36 commits intopython:masterfrom
jolaf:openssl
Jun 16, 2021
Merged

Improved OpenSSL stubs#5645
srittau merged 36 commits intopython:masterfrom
jolaf:openssl

Conversation

@jolaf
Copy link
Contributor

@jolaf jolaf commented Jun 15, 2021

Fixes #2052.

  • Added missing stubs for OpenSSL.SSL
  • Added some missing annotations to OpenSSL.crypto
  • Improved imports structure
  • Fixed _StrLike and _BytesLike annotations
  • Fixed passphrase callback annotations
  • Reordered classes and methods according to official documentation

jolaf and others added 30 commits October 7, 2019 17:41
Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thank you. Could you also update the version in METADATA.toml? I think we should also remove python3 = false as this package supports Python 3 and the stubs seem fine. A few more remarks below.

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks! I noticed one replace error below. Also, please replace Optional[X] with X | None (outside type aliases) and update the library version. Apart from that the changes look good.

@jolaf jolaf requested a review from srittau June 16, 2021 14:37
@srittau srittau merged commit ff75793 into python:master Jun 16, 2021
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.

Add stubs for OpenSSL.SSL

2 participants