Skip to content

Commit

Permalink
Revert "Mark key types as SupportsBytes (#21)"
Browse files Browse the repository at this point in the history
This reverts commit 5a7d7b7.
  • Loading branch information
David Robertson committed Mar 29, 2022
1 parent 5440831 commit 4d1adc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions signedjson/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

import sys
from typing import TYPE_CHECKING, SupportsBytes
from typing import TYPE_CHECKING

import nacl.signing

Expand All @@ -24,7 +24,7 @@
from typing import Protocol


class BaseKey(Protocol, SupportsBytes):
class BaseKey(Protocol):
"""Common base type for VerifyKey and SigningKey"""

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

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

0 comments on commit 4d1adc6

Please sign in to comment.