mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
turn mypy checks back on, fix some errors
This commit is contained in:
@ -182,7 +182,9 @@ class InsecureTransport(BaseSecureTransport):
|
||||
|
||||
def make_exchange_message(pubkey: PublicKey) -> plaintext_pb2.Exchange:
|
||||
pubkey_pb = crypto_pb2.PublicKey(
|
||||
key_type=pubkey.get_type().value, data=pubkey.to_bytes()
|
||||
# type ignored - TODO add ECD_P256 to KeyType
|
||||
key_type=pubkey.get_type().value, # type: ignore
|
||||
data=pubkey.to_bytes(),
|
||||
)
|
||||
id_bytes = ID.from_pubkey(pubkey).to_bytes()
|
||||
return plaintext_pb2.Exchange(id=id_bytes, pubkey=pubkey_pb)
|
||||
|
||||
Reference in New Issue
Block a user