Use f-strings in more places that were missed

This commit is contained in:
Sebastian Law
2021-04-08 06:31:06 -07:00
committed by GitHub
parent 99fc950510
commit 05c123f3ab
7 changed files with 19 additions and 18 deletions

View File

@ -338,7 +338,7 @@ Converters
@commands.command()
async def test(ctx, numbers: Greedy[int], reason: str):
await ctx.send("numbers: {}, reason: {}".format(numbers, reason))
await ctx.send(f"numbers: {numbers}, reason: {reason}")
An invocation of ``[p]test 1 2 3 4 5 6 hello`` would pass ``numbers`` with
``[1, 2, 3, 4, 5, 6]`` and ``reason`` with ``hello``\.