fix pylint R0205 (useless-object-inheritance)
This commit is contained in:
parent
d29fcca6aa
commit
35396d7e63
2 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ class Route(NamedTuple):
|
||||||
cltv: int
|
cltv: int
|
||||||
|
|
||||||
|
|
||||||
class Invoice(object):
|
class Invoice:
|
||||||
payment_hash: str
|
payment_hash: str
|
||||||
amount_msat: int = 0
|
amount_msat: int = 0
|
||||||
description: Optional[str] = None
|
description: Optional[str] = None
|
||||||
|
|
@ -245,7 +245,7 @@ def lnencode(addr, privkey):
|
||||||
return bech32_encode(hrp, bitarray_to_u5(data))
|
return bech32_encode(hrp, bitarray_to_u5(data))
|
||||||
|
|
||||||
|
|
||||||
class LnAddr(object):
|
class LnAddr:
|
||||||
def __init__(
|
def __init__(
|
||||||
self, paymenthash=None, amount=None, currency="bc", tags=None, date=None
|
self, paymenthash=None, amount=None, currency="bc", tags=None, date=None
|
||||||
):
|
):
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ def load_macaroon(macaroon: str) -> str:
|
||||||
return macaroon
|
return macaroon
|
||||||
|
|
||||||
|
|
||||||
class AESCipher(object):
|
class AESCipher:
|
||||||
"""This class is compatible with crypto-js/aes.js
|
"""This class is compatible with crypto-js/aes.js
|
||||||
|
|
||||||
Encrypt and decrypt in Javascript using:
|
Encrypt and decrypt in Javascript using:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue