From 72386033a9b4d0f7e14377b8b5a4ab8a493d1f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Mon, 6 Feb 2023 11:56:48 +0100 Subject: [PATCH] formatting --- lnbits/bolt11.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lnbits/bolt11.py b/lnbits/bolt11.py index d27f714f..dd156217 100644 --- a/lnbits/bolt11.py +++ b/lnbits/bolt11.py @@ -69,7 +69,7 @@ def decode(pr: str) -> Invoice: # pull out date date_bin = data.read(35) - invoice.date = date_bin.uint #type: ignore + invoice.date = date_bin.uint # type: ignore while data.pos != data.len: tag, tagdata, data = _pull_tagged(data) @@ -82,7 +82,7 @@ def decode(pr: str) -> Invoice: elif tag == "p" and data_length == 52: invoice.payment_hash = _trim_to_bytes(tagdata).hex() elif tag == "x": - invoice.expiry = tagdata.uint #type: ignore + invoice.expiry = tagdata.uint # type: ignore elif tag == "n": invoice.payee = _trim_to_bytes(tagdata).hex() # this won't work in most cases, we must extract the payee @@ -92,11 +92,11 @@ def decode(pr: str) -> Invoice: elif tag == "r": s = bitstring.ConstBitStream(tagdata) while s.pos + 264 + 64 + 32 + 32 + 16 < s.len: - pubkey = s.read(264) #type: ignore - short_channel_id = s.read(64) #type: ignore - base_fee_msat = s.read(32) #type: ignore - ppm_fee = s.read(32) #type: ignore - cltv = s.read(16) #type: ignore + pubkey = s.read(264) # type: ignore + short_channel_id = s.read(64) # type: ignore + base_fee_msat = s.read(32) # type: ignore + ppm_fee = s.read(32) # type: ignore + cltv = s.read(16) # type: ignore route = Route( pubkey=pubkey.tobytes().hex(), short_channel_id=_readable_scid(short_channel_id.intbe),