Format with black

This commit is contained in:
StockerMC
2021-10-16 09:55:50 -04:00
parent 022bbd3d51
commit 8dba9897d4
2 changed files with 8 additions and 2 deletions

View File

@@ -1044,7 +1044,9 @@ class Option(Generic[T, DT]): # type: ignore
"name",
)
def __init__(self, default: T = inspect.Parameter.empty, *, description: DT, name: str = discord.utils.MISSING) -> None:
def __init__(
self, default: T = inspect.Parameter.empty, *, description: DT, name: str = discord.utils.MISSING
) -> None:
self.description = description
self.default = default
self.name: str = name

View File

@@ -1288,7 +1288,11 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
elif all([arg in application_option_channel_types for arg in annotation.__args__]):
option["type"] = 7
option["channel_types"] = [discord_value for arg in annotation.__args__ for discord_value in application_option_channel_types[arg]]
option["channel_types"] = [
discord_value
for arg in annotation.__args__
for discord_value in application_option_channel_types[arg]
]
elif origin is Literal:
literal_values = annotation.__args__