mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Fix mypy
It seems the stub doesn't allow default value for params
This commit is contained in:
committed by
Kevin Mai-Husan Chia
parent
c5f32bf431
commit
e293b89925
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user