This applies the changes proposed in #692 to nacl.utils on top of the
changes in more recent PRs.
I've annotated nacl.bindings.randombytes_buf_deterministic to appease
mypy. It's needed because I configured mypy to require that typed code
always calls typed functions, in #694.
This applies the changes proposed in #692 to
nacl.utils
on top of the changes in more recent PRs.I've annotated
nacl.bindings.randombytes_buf_deterministic
to appease mypy. It's needed because I configured mypy to require that typed code always calls typed functions, in #694.Per https://github.com/pyca/pynacl/pull/692#discussion_r733872525 and https://stackoverflow.com/a/44644576/5252017 , I've made sure that the
_from_parts
accepts a genericcls
argument and returns an instance of thatcls
. I don't think we actually intend for people to subclassEncryptedMessage
, but maybe they do. Besides, it's nice to have annotations that are as accurate as possible.