Skip to content

Apply type annotations to x509 ct and ocsp - #5712

Merged
reaperhulk merged 1 commit into
pyca:masterfrom
alex:type-x509-ct-ocsp
Jan 30, 2021
Merged

reaperhulk merged 1 commit into
pyca:masterfrom
alex:type-x509-ct-ocsp

Conversation

@alex

@alex alex commented Jan 30, 2021

Copy link
Copy Markdown
Member

Refs #5670

@alex
alex force-pushed the type-x509-ct-ocsp branch from df5efbf to 8dceeeb Compare January 30, 2021 18:27
Comment thread src/cryptography/fernet.py Resolved

@reaperhulk reaperhulk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

_OCSPRequest and _OCSPResponse, as well as OCSPRequest and OCSPResponse (the ABCs) are missing type information on quite a few properties. Extensions is as well.

RFC822Name, DNSName, UniformResourceIdentifier, DirectoryName, RegisteredID, IPAddress, OtherName, NameAttribute, and more don't have typing on various dunder methods, while we did add typing to those methods in past PRs (e.g. https://github.com/pyca/cryptography/pull/5711/files#diff-c42cf4fc4d5c5eacf9b7cda43dbb0ab06335d0b9804814a20f488a827987d847R48).

Maybe we should just strip the typing on dunder methods?

@alex
alex force-pushed the type-x509-ct-ocsp branch 2 times, most recently from 5624fe1 to a99ed0c Compare January 30, 2021 22:06
Comment thread src/cryptography/x509/ocsp.py Resolved
Comment thread src/cryptography/x509/ocsp.py Resolved
@alex
alex force-pushed the type-x509-ct-ocsp branch from a99ed0c to b58e230 Compare January 30, 2021 22:12
@reaperhulk
reaperhulk merged commit f16bff2 into pyca:master Jan 30, 2021
@alex
alex deleted the type-x509-ct-ocsp branch January 30, 2021 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants