1
0

lnworker: fix some type hints re hold_invoices

This commit is contained in:
SomberNight
2023-09-06 19:01:41 +00:00
parent a406f7bba0
commit a560841f3f
3 changed files with 12 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import os
import asyncio
from collections import defaultdict
from typing import TYPE_CHECKING
from aiohttp import web
@@ -9,6 +10,11 @@ from electrum.logging import Logger
from electrum.util import EventListener
from electrum.lnaddr import lndecode
if TYPE_CHECKING:
from electrum.simple_config import SimpleConfig
from electrum.wallet import Abstract_Wallet
class SwapServer(Logger, EventListener):
"""
public API:
@@ -18,7 +24,7 @@ class SwapServer(Logger, EventListener):
WWW_DIR = os.path.join(os.path.dirname(__file__), 'www')
def __init__(self, config, wallet):
def __init__(self, config: 'SimpleConfig', wallet: 'Abstract_Wallet'):
Logger.__init__(self)
self.config = config
self.wallet = wallet