Python/relative_import (#186)

* relative import all the things

* make format

* add __init__.py to cli/

* fix mypy errors

* get rid of more mypy

* mypy fix crud.py

* fix another mypy error
This commit is contained in:
calle
2023-05-01 22:39:23 +02:00
committed by GitHub
parent c9c8c1d12f
commit 89fb2787e6
21 changed files with 104 additions and 139 deletions

View File

@@ -3,8 +3,7 @@ from typing import Dict, Optional
import requests
from cashu.core.settings import settings
from ..core.settings import settings
from .base import (
InvoiceResponse,
PaymentResponse,
@@ -110,7 +109,6 @@ class LNbitsWallet(Wallet):
async def get_invoice_status(self, checking_id: str) -> PaymentStatus:
try:
r = self.s.get(
url=f"{self.endpoint}/api/v1/payments/{checking_id}",
headers=self.key,