Skip to content

Commit

Permalink
Update type annotations to reflect new args and behavior of get_dewie…
Browse files Browse the repository at this point in the history
…s_or_error().
  • Loading branch information
moodyjon committed May 24, 2022
1 parent 0a88c3e commit 6d162ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lbry/extras/daemon/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 6d162ce

Please sign in to comment.