From 6d162ceefe78459954b075bd9176b13d346c4906 Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Thu, 5 May 2022 16:20:06 -0400 Subject: [PATCH] Update type annotations to reflect new args and behavior of get_dewies_or_error(). --- lbry/extras/daemon/daemon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index d1aa92de59..87362f5719 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -5485,9 +5485,10 @@ async def get_channel_or_error( raise ValueError(f"Couldn't find channel with channel_{key} '{value}'.") @staticmethod - def get_dewies_or_error(argument: str, lbc: str, positive_value=False, - everything=False, default_value=None, - argument_everything=None): + def get_dewies_or_error(argument: str, lbc: Optional[str], + positive_value: bool = False, everything: bool = False, + default_value: Optional[int] = None, + argument_everything: Optional[str] = None) -> int: if everything: if lbc is not None: argument_everything = argument_everything or argument + '_everything'