From 24fbb9ef5d32e8429702c40dc75e3dc2416fcfb8 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 22 Jan 2023 09:59:58 +0000 Subject: [PATCH] fix flake8 F811 (redefinition of unused) --- lnbits/extensions/satsdice/models.py | 1 - lnbits/wallets/macaroon/macaroon.py | 1 - tests/extensions/invoices/test_invoices_api.py | 5 ----- 3 files changed, 7 deletions(-) diff --git a/lnbits/extensions/satsdice/models.py b/lnbits/extensions/satsdice/models.py index b0a9a4cd..510b7bde 100644 --- a/lnbits/extensions/satsdice/models.py +++ b/lnbits/extensions/satsdice/models.py @@ -8,7 +8,6 @@ from lnurl import Lnurl from lnurl import encode as lnurl_encode from lnurl.types import LnurlPayMetadata from pydantic import BaseModel -from pydantic.main import BaseModel class satsdiceLink(BaseModel): diff --git a/lnbits/wallets/macaroon/macaroon.py b/lnbits/wallets/macaroon/macaroon.py index 5769df88..05d667be 100644 --- a/lnbits/wallets/macaroon/macaroon.py +++ b/lnbits/wallets/macaroon/macaroon.py @@ -7,7 +7,6 @@ from Cryptodome.Cipher import AES from loguru import logger BLOCK_SIZE = 16 -import getpass def load_macaroon(macaroon: str) -> str: diff --git a/tests/extensions/invoices/test_invoices_api.py b/tests/extensions/invoices/test_invoices_api.py index c0777690..3c337d7e 100644 --- a/tests/extensions/invoices/test_invoices_api.py +++ b/tests/extensions/invoices/test_invoices_api.py @@ -3,11 +3,6 @@ import pytest_asyncio # noqa: F401 from loguru import logger # noqa: F401 from lnbits.core.crud import get_wallet # noqa: F401 -from tests.conftest import adminkey_headers_from, client, invoice # noqa: F401 -from tests.extensions.invoices.conftest import ( # noqa: F401 - accounting_invoice, - invoices_wallet, -) from tests.helpers import credit_wallet # noqa: F401 from tests.mocks import WALLET # noqa: F401