type-hint some Callables
could not figure out how to type-hint coinchooser.sufficient_funds with typing.Protocol, at least PyCharm complained on all my attempts
This commit is contained in:
@@ -275,8 +275,8 @@ class CosignerWallet(Logger):
|
||||
tx: Union['Transaction', 'PartialTransaction'],
|
||||
*,
|
||||
label: str = None,
|
||||
on_failure: Callable = None,
|
||||
on_success: Callable = None
|
||||
on_failure: Callable[[str], None] = None,
|
||||
on_success: Callable[[], None] = None
|
||||
) -> None:
|
||||
try:
|
||||
# TODO: adding tx should be handled more gracefully here:
|
||||
|
||||
Reference in New Issue
Block a user