From 86e8635a16ef198f31a30c632d6f1edb47a9dcdd Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 24 Dec 2022 15:17:09 +0100 Subject: [PATCH] make format --- cashu/core/base.py | 2 +- cashu/wallet/cli.py | 2 +- cashu/wallet/wallet.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cashu/core/base.py b/cashu/core/base.py index 7c90330..2f2e3dd 100644 --- a/cashu/core/base.py +++ b/cashu/core/base.py @@ -1,5 +1,5 @@ from sqlite3 import Row -from typing import Any, Dict, List, Union, TypedDict, Optional +from typing import Any, Dict, List, Optional, TypedDict, Union from pydantic import BaseModel diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index 0759c26..ae691d4 100644 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -33,10 +33,10 @@ from cashu.core.settings import ( from cashu.tor.tor import TorProxy from cashu.wallet import migrations from cashu.wallet.crud import ( + get_keyset, get_lightning_invoices, get_reserved_proofs, get_unused_locks, - get_keyset, ) from cashu.wallet.wallet import Wallet as Wallet diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index e81ec84..c9b4f2c 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -23,9 +23,9 @@ from cashu.core.base import ( P2SHScript, Proof, SplitRequest, - WalletKeyset, TokenJson, TokenMintJson, + WalletKeyset, ) from cashu.core.bolt11 import Invoice as InvoiceBolt11 from cashu.core.db import Database @@ -58,6 +58,7 @@ class LedgerAPI: keys: Dict[int, str] keyset: str tor: TorProxy + db: Database def __init__(self, url): self.url = url