Skip to content

Commit 4d1adc6

Browse files
author
David Robertson
committed
Revert "Mark key types as SupportsBytes (#21)"
This reverts commit 5a7d7b7.
1 parent 5440831 commit 4d1adc6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

signedjson/types.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515

1616
import sys
17-
from typing import TYPE_CHECKING, SupportsBytes
17+
from typing import TYPE_CHECKING
1818

1919
import nacl.signing
2020

@@ -24,7 +24,7 @@
2424
from typing import Protocol
2525

2626

27-
class BaseKey(Protocol, SupportsBytes):
27+
class BaseKey(Protocol):
2828
"""Common base type for VerifyKey and SigningKey"""
2929

3030
version = "" # type: str
@@ -56,7 +56,5 @@ def sign(self, message):
5656

5757
@property
5858
def verify_key(self):
59-
# Note: use `signedjson.key.get_verify_key` to get a
60-
# `signedjson.types.VerifyKey`.
6159
# type: () -> nacl.signing.VerifyKey
6260
pass # pragma: nocover

0 commit comments

Comments
 (0)