From a3b9960fbd1e76bfb90c8c1e34a8fd7708ef44d9 Mon Sep 17 00:00:00 2001 From: jMyles Date: Tue, 21 Nov 2017 22:12:27 -0800 Subject: [PATCH] Added sentinel for missing return value - see https://github.com/python/mypy/issues/4223#issuecomment-342865133. --- nkms/keystore/keypairs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nkms/keystore/keypairs.py b/nkms/keystore/keypairs.py index 8c796a4886..aab1302d90 100644 --- a/nkms/keystore/keypairs.py +++ b/nkms/keystore/keypairs.py @@ -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):