Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
tandemdude committed Dec 16, 2020
1 parent 6b3201f commit efc77b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lightbulb/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ def __init__(self, command: Command) -> None:
) and not arg.ignore:
self.number_positional_args += 1

self.minimum_arguments = sum(
1 for a in self.args.values() if not a.ignore and a.required
)
self.minimum_arguments = sum(1 for a in self.args.values() if not a.ignore and a.required)
self.maximum_arguments = (
float("inf")
if any(a.kind == inspect.Parameter.VAR_POSITIONAL for a in signature.parameters.values())
Expand Down Expand Up @@ -184,7 +182,7 @@ def parse_arg(self, index: int, arg: inspect.Parameter) -> ArgInfo:

def get_missing_args(self, args: typing.List[str]) -> typing.List[str]:
required_command_args = [name for name, arg in self.args.items() if not arg.ignore and arg.required]
return required_command_args[len(args):]
return required_command_args[len(args) :]


class Command:
Expand Down

0 comments on commit efc77b1

Please sign in to comment.