mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
pyln: Fix up the mypy annotation for init
self-disabling
This commit is contained in:
parent
f5e08c3dae
commit
0da87e7715
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue