We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SupportsBytes
1 parent 8cfb577 commit 5a7d7b7Copy full SHA for 5a7d7b7
1 file changed
signedjson/types.py
@@ -14,7 +14,7 @@
14
# limitations under the License.
15
16
import sys
17
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, SupportsBytes
18
19
import nacl.signing
20
@@ -24,7 +24,7 @@
24
from typing import Protocol
25
26
27
-class BaseKey(Protocol):
+class BaseKey(Protocol, SupportsBytes):
28
"""Common base type for VerifyKey and SigningKey"""
29
30
version = "" # type: str
@@ -56,5 +56,7 @@ def sign(self, message):
56
57
@property
58
def verify_key(self):
59
+ # Note: use `signedjson.key.get_verify_key` to get a
60
+ # `signedjson.types.VerifyKey`.
61
# type: () -> nacl.signing.VerifyKey
62
pass # pragma: nocover
0 commit comments