Files
pallectrum/electrum/plugins/nwc/cmdline.py
SomberNight 527d9e8215 plugins: nwc: clean-up imports
Try to follow PEP-8 import grouping, to make things readable.
I want to be able to quickly spot 3rd-party library imports! :P
2025-06-10 15:22:13 +00:00

19 lines
449 B
Python

from typing import TYPE_CHECKING
from electrum.plugin import hook
from .nwcserver import NWCServerPlugin
if TYPE_CHECKING:
from electrum.daemon import Daemon
from electrum.wallet import Abstract_Wallet
class Plugin(NWCServerPlugin):
def __init__(self, *args):
NWCServerPlugin.__init__(self, *args)
@hook
def daemon_wallet_loaded(self, daemon: 'Daemon', wallet: 'Abstract_Wallet'):
self.start_plugin(wallet)