fix mypy for lnbits/extensions/splitpayments

This commit is contained in:
Pavol Rusnak 2023-01-03 23:25:42 +01:00
parent c9b02a6470
commit 0efc27993e
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 3 additions and 6 deletions

View File

@ -20,7 +20,7 @@ async def wait_for_paid_invoices():
async def on_invoice_paid(payment: Payment) -> None: async def on_invoice_paid(payment: Payment) -> None:
if payment.extra.get("tag") == "splitpayments": if not payment.extra or payment.extra.get("tag") == "splitpayments":
# already a splitted payment, ignore # already a splitted payment, ignore
return return

View File

@ -1,5 +1,4 @@
from fastapi import Request from fastapi import Depends, Request
from fastapi.params import Depends
from fastapi.templating import Jinja2Templates from fastapi.templating import Jinja2Templates
from starlette.responses import HTMLResponse from starlette.responses import HTMLResponse

View File

@ -1,7 +1,6 @@
from http import HTTPStatus from http import HTTPStatus
from fastapi import Request from fastapi import Depends, Request
from fastapi.params import Depends
from starlette.exceptions import HTTPException from starlette.exceptions import HTTPException
from lnbits.core.crud import get_wallet, get_wallet_for_key from lnbits.core.crud import get_wallet, get_wallet_for_key

View File

@ -104,7 +104,6 @@ exclude = """(?x)(
| ^lnbits/extensions/offlineshop. | ^lnbits/extensions/offlineshop.
| ^lnbits/extensions/paywall. | ^lnbits/extensions/paywall.
| ^lnbits/extensions/satspay. | ^lnbits/extensions/satspay.
| ^lnbits/extensions/splitpayments.
| ^lnbits/extensions/streamalerts. | ^lnbits/extensions/streamalerts.
| ^lnbits/extensions/tpos. | ^lnbits/extensions/tpos.
| ^lnbits/extensions/watchonly. | ^lnbits/extensions/watchonly.