diff options
author | 2021-08-25 21:30:02 +0100 | |
---|---|---|
committer | 2021-08-25 21:33:53 +0100 | |
commit | 3d15c39e04f6d85938450fa212b7b8f36fe21ff2 (patch) | |
tree | 1fef10a9db906c587da34d3d1afe9928c233682f | |
parent | Move lemojis into constants.py (diff) |
Fix `CoinSide` error being suppressed
Now explicitly passes `None` as default value rather than using `typing.Optional`.
-rw-r--r-- | bot/exts/evergreen/coinflip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/coinflip.py b/bot/exts/evergreen/coinflip.py index 2f9bf38b..c0aa5645 100644 --- a/bot/exts/evergreen/coinflip.py +++ b/bot/exts/evergreen/coinflip.py @@ -1,5 +1,5 @@ import random -from typing import Optional, Tuple +from typing import Tuple from discord.ext import commands @@ -29,7 +29,7 @@ class CoinFlip(commands.Cog): """Cog for the CoinFlip command.""" @commands.command(name="coinflip", aliases=("flip", "coin", "cf")) - async def coinflip_command(self, ctx: commands.Context, side: Optional[CoinSide]) -> None: + async def coinflip_command(self, ctx: commands.Context, side: CoinSide = None) -> None: """ Flips a coin. |