formatted with black(?)

This commit is contained in:
Soheab 2021-10-13 19:35:22 +02:00
parent b8e4d23d44
commit e9010454dd
2 changed files with 4 additions and 2 deletions

View File

@ -1234,7 +1234,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
description = self.option_descriptions[name]
origin = getattr(annotation, "__origin__", None)
if inspect.isclass(annotation) and issubclass(annotation, FlagConverter):
return [
param

View File

@ -149,7 +149,9 @@ def flag(
Whether multiple given values overrides the previous value. The default
value depends on the annotation given.
"""
return Flag(name=name, description=description, aliases=aliases, default=default, max_args=max_args, override=override)
return Flag(
name=name, description=description, aliases=aliases, default=default, max_args=max_args, override=override
)
def validate_flag_name(name: str, forbidden: Set[str]):