fix pyright issues

This commit is contained in:
dni ⚡
2023-04-04 07:49:13 +02:00
parent 5dbd9a9192
commit 2a1a0f3a2f
4 changed files with 4 additions and 81 deletions
+2 -1
View File
@@ -265,7 +265,8 @@ class LnAddr:
self.amount = amount
def __str__(self):
pubkey = bytes.hex(self.pubkey.serialize()).decode()
assert self.pubkey, "LnAddr, pubkey must be set"
pubkey = bytes.hex(self.pubkey.serialize())
tags = ", ".join([f"{k}={v}" for k, v in self.tags])
return f"LnAddr[{pubkey}, amount={self.amount}{self.currency} tags=[{tags}]]"