Add type annotations for the SSL module by jlaine · Pull Request #1308 · pyca/pyopenssl (original) (raw)

I have rebased on top of main, let's see if CI is happy.

I also added int annotations to our constants, like types-OpenSSL does.

Some questions:

As a stretch goal I was wondering whether we can get a clean mypy run on SSL.py. A couple of aspects of the code make this moderately hard: