mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
pyln: Fix up the mypy annotation for init self-disabling
This commit is contained in:
committed by
Rusty Russell
parent
f5e08c3dae
commit
0da87e7715
@@ -274,7 +274,11 @@ class Plugin(object):
|
||||
self.rpc: Optional[LightningRpc] = None
|
||||
self.startup = True
|
||||
self.dynamic = dynamic
|
||||
self.child_init: Optional[Callable[..., None]] = None
|
||||
|
||||
# The function registering as init may return a dict of the
|
||||
# form `{'disable': 'why'}` to self-disable, however most
|
||||
# commonly you'll want to return `None`
|
||||
self.child_init: Optional[Callable[..., Optional[dict]]] = None
|
||||
|
||||
self.write_lock = RLock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user