Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 14, 2023
1 parent f4e2f2e commit 38a0dab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_typing_annotated.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ async def echo(ctx, txt: Annotated[str, discord.Option()]):
bot = discord.Bot()
bot.add_application_command(cmd)
dict_result = cmd.to_dict()
assert dict_result.get("options")[0].get("type") == SlashCommandOptionType.string.value
assert (
dict_result.get("options")[0].get("type") == SlashCommandOptionType.string.value
)


def test_typing_annotated_decorator():
Expand All @@ -40,7 +42,7 @@ def __init__(self, bot_) -> None:

@slash_command()
async def echo(
self, ctx, txt: Annotated[str, discord.Option(description="Some text")]
self, ctx, txt: Annotated[str, discord.Option(description="Some text")]
):
await ctx.respond(txt)

Expand All @@ -65,7 +67,7 @@ def __init__(self, bot_) -> None:

@grp.command()
async def echo(
self, ctx, txt: Annotated[str, discord.Option(description="Some text")]
self, ctx, txt: Annotated[str, discord.Option(description="Some text")]
):
await ctx.respond(txt)

Expand Down

0 comments on commit 38a0dab

Please sign in to comment.