-
Notifications
You must be signed in to change notification settings - Fork 49
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
Signer uses python2 "__metaclass__" #463
Comments
also StorageBackendInterface |
This might be a bit of a digression, but I think we should be using
|
In general I like the protocol idea for things like Signer (where the intent is to document to 3rd parties what they need to do). Caveats though:
The one issue I have with Protocol is that the implementations never declare themselves (compare with rust Traits which you always declare with a |
I agree that |
Every now and then this test fails, because pyca/cryptography raises an unexpected error message (see pyca/cryptography#8563) Regardless of whether it is a good idea to assert error messages of 3rd party libraries, this patch provides a quick fix by asserting that is one of both known error messages. closes secure-systems-lab#463 Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
signer.py does
__metaclass__ = abc.ABCMeta
. This is python2 syntax and does nothing. So callingSigner()
works fine but the resulting object does not implement the Signer API (the sign method is unimplemented)The actually supported methods are
and
the latter may be safer (WRT multiple inheritance issues)
Found in #456
The text was updated successfully, but these errors were encountered: