Skip to content

Commit

Permalink
Added sentinel for missing return value - see python/mypy#4223 (comment)
Browse files Browse the repository at this point in the history
.
  • Loading branch information
jMyles committed Nov 22, 2017
1 parent 5f4b5f5 commit a3b9960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nkms/keystore/keypairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def deserialize_key(key_data: bytes) -> 'Keypair':
return SigningKeypair(privkey=key)
else:
raise ValueError("Unable to determine which type of keypair this is - keypair_byte was {}".format(keypair_byte))
assert False


class EncryptingKeypair(Keypair):
Expand Down

0 comments on commit a3b9960

Please sign in to comment.