diff options
| author | 2021-08-07 05:23:03 +0300 | |
|---|---|---|
| committer | 2021-08-31 13:08:51 -0700 | |
| commit | 745cd1d6d3d6227d2a1e82cf25611d76221c40cd (patch) | |
| tree | 6d653668fe1bbfd237b4c87890e0c67a36e2c7f5 /bot/exts/evergreen/coinflip.py | |
| parent | Merge pull request #835 from python-discord/discord-2.0 (diff) | |
Fix type annotations
Diffstat (limited to 'bot/exts/evergreen/coinflip.py')
| -rw-r--r-- | bot/exts/evergreen/coinflip.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/evergreen/coinflip.py b/bot/exts/evergreen/coinflip.py index d1762463..7810da89 100644 --- a/bot/exts/evergreen/coinflip.py +++ b/bot/exts/evergreen/coinflip.py @@ -1,5 +1,4 @@ import random -from typing import Tuple from discord.ext import commands @@ -10,8 +9,8 @@ from bot.constants import Emojis class CoinSide(commands.Converter): """Class used to convert the `side` parameter of coinflip command.""" - HEADS: Tuple[str] = ("h", "head", "heads") - TAILS: Tuple[str] = ("t", "tail", "tails") + HEADS: tuple[str, ...] = ("h", "head", "heads") + TAILS: tuple[str, ...] = ("t", "tail", "tails") async def convert(self, ctx: commands.Context, side: str) -> str: """Converts the provided `side` into the corresponding string.""" |