Update type annotations to reflect new args and behavior of get_dewies_or_error().
This commit is contained in:
parent
c1fe4ca471
commit
f7dfc66eff
1 changed files with 4 additions and 3 deletions
|
@ -5493,9 +5493,10 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
raise ValueError(f"Couldn't find channel with channel_{key} '{value}'.")
|
raise ValueError(f"Couldn't find channel with channel_{key} '{value}'.")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_dewies_or_error(argument: str, lbc: str, positive_value=False,
|
def get_dewies_or_error(argument: str, lbc: Optional[str],
|
||||||
everything=False, default_value=None,
|
positive_value: bool = False, everything: bool = False,
|
||||||
argument_everything=None):
|
default_value: Optional[int] = None,
|
||||||
|
argument_everything: Optional[str] = None) -> int:
|
||||||
if everything:
|
if everything:
|
||||||
if lbc is not None:
|
if lbc is not None:
|
||||||
argument_everything = argument_everything or argument + '_everything'
|
argument_everything = argument_everything or argument + '_everything'
|
||||||
|
|
Loading…
Add table
Reference in a new issue