It seems the stub doesn't allow default value for params
This commit is contained in:
mhchia 2019-08-16 10:47:19 +08:00 committed by Kevin Mai-Husan Chia
parent c5f32bf431
commit e293b89925

View File

@ -48,8 +48,12 @@ class PublicKey(Key):
def serialize_to_protobuf(self) -> protobuf.PublicKey:
key_type = self.get_type().value
data = self.to_bytes()
<<<<<<< HEAD
protobuf_key = protobuf.PublicKey(key_type=key_type, data=data)
return protobuf_key
=======
return protobuf.PublicKey(key_type=_type.value, data=data)
>>>>>>> Fix mypy
class PrivateKey(Key):
@ -68,8 +72,12 @@ class PrivateKey(Key):
def serialize_to_protobuf(self) -> protobuf.PrivateKey:
key_type = self.get_type().value
data = self.to_bytes()
<<<<<<< HEAD
protobuf_key = protobuf.PrivateKey(key_type=key_type, data=data)
return protobuf_key
=======
return protobuf.PrivateKey(key_type=_type.value, data=data)
>>>>>>> Fix mypy
@dataclass(frozen=True)