Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish off annotating nacl #724

Merged
merged 8 commits into from Dec 21, 2021
Merged

Finish off annotating nacl #724

merged 8 commits into from Dec 21, 2021

Conversation

DMRobertson
Copy link
Contributor

@DMRobertson DMRobertson commented Dec 21, 2021

The rest of #692 and a little bit of effort to resolve merge conflicts.

Should be reviewable commit-by-commit.

I don't know if we'd consider this sufficient to close #660. It might be nice to run mypy over the tests too.

Had some fun merging in the changes from pyca#692 with pyca#706.

I didn't go all-in to make `PrivateKey`'s classmethods take a generic
`cls` parameter. Felt it was easier to keep things simple.
Now that all files are annotated, apply common settings globally so that
the overrides only apply to `nacl.bindings`.

In doing so, account for an `Any`-expression in `scrypt.py`. I must not
have correctly configured mypy for `nacl.pwhash` in pyca#718: I think it
should have been `nacl.pwhash.*` instead of `nacl.pwhash`.
@DMRobertson DMRobertson marked this pull request as ready for review December 21, 2021 20:55
@reaperhulk reaperhulk merged commit b9a14e1 into pyca:main Dec 21, 2021
@reaperhulk reaperhulk mentioned this pull request Dec 21, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Type annotations
2 participants