tfix incorrect type hint - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 34612c671e0c37418c0aab02dbeb90402b195193
DIR parent 2880c26d871aefce87a63d89fd156a8d793280ce
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 21 Jan 2020 15:39:34 +0100
fix incorrect type hint
Diffstat:
M electrum/lnworker.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py
t@@ -1139,7 +1139,7 @@ class LNWallet(LNWorker):
def get_preimage(self, payment_hash: bytes) -> bytes:
return bfh(self.preimages.get(bh2u(payment_hash)))
- def get_payment_info(self, payment_hash: bytes) -> bytes:
+ def get_payment_info(self, payment_hash: bytes) -> PaymentInfo:
key = payment_hash.hex()
with self.lock:
if key not in self.payments:
t@@ -1147,7 +1147,7 @@ class LNWallet(LNWorker):
amount, direction, status = self.payments[key]
return PaymentInfo(payment_hash, amount, direction, status)
- def save_payment_info(self, info):
+ def save_payment_info(self, info: PaymentInfo) -> None:
key = info.payment_hash.hex()
assert info.status in [PR_PAID, PR_UNPAID, PR_INFLIGHT]
with self.lock: