diff options
| author | 2019-08-17 21:13:32 +0800 | |
|---|---|---|
| committer | 2019-08-17 21:13:32 +0800 | |
| commit | 31fdda9006516251f424db5f49ff27515367a598 (patch) | |
| tree | a3b4cfc7eb9078a562629cb599e97ca7324f8887 /bot | |
| parent | Implement randomcase (diff) | |
Update function annotations for existing methods
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/seasons/evergreen/fun.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/bot/seasons/evergreen/fun.py b/bot/seasons/evergreen/fun.py index 9aa2ddc5..0b68357b 100644 --- a/bot/seasons/evergreen/fun.py +++ b/bot/seasons/evergreen/fun.py @@ -2,21 +2,21 @@ import logging  import random  from discord.ext import commands -from discord.ext.commands import Context, MessageConverter +from discord.ext.commands import Bot, Cog, Context, MessageConverter  from bot.constants import Emojis  log = logging.getLogger(__name__) -class Fun(commands.Cog): +class Fun(Cog):      """A collection of general commands for fun.""" -    def __init__(self, bot): +    def __init__(self, bot: Bot) -> None:          self.bot = bot      @commands.command() -    async def roll(self, ctx, num_rolls: int = 1): +    async def roll(self, ctx: Context, num_rolls: int = 1) -> None:          """Outputs a number of random dice emotes (up to 6)."""          output = ""          if num_rolls > 6: | 
