Repository navigation
Apply type annotations to x509 ct and ocsp - #5712
Merged
Merged
Conversation
alex
force-pushed
the
type-x509-ct-ocsp
branch
from
January 30, 2021 18:27
df5efbf to
8dceeeb
Compare
reaperhulk
reviewed
Jan 30, 2021
reaperhulk
requested changes
Jan 30, 2021
reaperhulk
left a comment
Member
There was a problem hiding this comment.
_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
force-pushed
the
type-x509-ct-ocsp
branch
2 times, most recently
from
January 30, 2021 22:06
5624fe1 to
a99ed0c
Compare
reaperhulk
reviewed
Jan 30, 2021
alex
force-pushed
the
type-x509-ct-ocsp
branch
from
January 30, 2021 22:12
a99ed0c to
b58e230
Compare
reaperhulk
approved these changes
Jan 30, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #5670