diff --git a/lnbits/bolt11.py b/lnbits/bolt11.py index 4e20208c9..1da6ce2a9 100644 --- a/lnbits/bolt11.py +++ b/lnbits/bolt11.py @@ -20,7 +20,7 @@ class Route(NamedTuple): cltv: int -class Invoice(object): +class Invoice: payment_hash: str amount_msat: int = 0 description: Optional[str] = None @@ -245,7 +245,7 @@ def lnencode(addr, privkey): return bech32_encode(hrp, bitarray_to_u5(data)) -class LnAddr(object): +class LnAddr: def __init__( self, paymenthash=None, amount=None, currency="bc", tags=None, date=None ): diff --git a/lnbits/wallets/macaroon/macaroon.py b/lnbits/wallets/macaroon/macaroon.py index 091551238..5769df88a 100644 --- a/lnbits/wallets/macaroon/macaroon.py +++ b/lnbits/wallets/macaroon/macaroon.py @@ -33,7 +33,7 @@ def load_macaroon(macaroon: str) -> str: return macaroon -class AESCipher(object): +class AESCipher: """This class is compatible with crypto-js/aes.js Encrypt and decrypt in Javascript using: