aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-26 22:16:09 -0400
committerGravatar S. Co1 <[email protected]>2019-09-26 22:16:09 -0400
commit765ecab67994b533e1779e59dedfb82d6659cb40 (patch)
tree71f48e709b77a23c156e6e2e29967dc5c199d173 /bot
parentMerge pull request #271 from python-discord/text-modify-embeds (diff)
Update flake8-annotation pin & relint
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/easter/avatar_easterifier.py2
-rw-r--r--bot/seasons/evergreen/fun.py2
-rw-r--r--bot/seasons/season.py2
-rw-r--r--bot/seasons/valentines/lovecalculator.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/bot/seasons/easter/avatar_easterifier.py b/bot/seasons/easter/avatar_easterifier.py
index 85c32909..e21e35fc 100644
--- a/bot/seasons/easter/avatar_easterifier.py
+++ b/bot/seasons/easter/avatar_easterifier.py
@@ -56,7 +56,7 @@ class AvatarEasterifier(commands.Cog):
Colours are split by spaces, unless you wrap the colour name in double quotes.
Discord colour names, HTML colour names, XKCD colour names and hex values are accepted.
"""
- async def send(*args, **kwargs):
+ async def send(*args, **kwargs) -> str:
"""
This replaces the original ctx.send.
diff --git a/bot/seasons/evergreen/fun.py b/bot/seasons/evergreen/fun.py
index 4a96743f..889ae079 100644
--- a/bot/seasons/evergreen/fun.py
+++ b/bot/seasons/evergreen/fun.py
@@ -72,7 +72,7 @@ class Fun(Cog):
Also accepts a valid discord Message ID or link.
"""
- def conversion_func(text):
+ def conversion_func(text: str) -> str:
"""Randomly converts the casing of a given string."""
return "".join(
char.upper() if round(random.random()) else char.lower() for char in text
diff --git a/bot/seasons/season.py b/bot/seasons/season.py
index 4e2141c7..8d8179f6 100644
--- a/bot/seasons/season.py
+++ b/bot/seasons/season.py
@@ -303,7 +303,7 @@ class SeasonBase:
cogs.append(cog_name)
if cogs:
- def cog_name(cog):
+ def cog_name(cog: commands.Cog) -> str:
return type(cog).__name__
cog_info = []
diff --git a/bot/seasons/valentines/lovecalculator.py b/bot/seasons/valentines/lovecalculator.py
index 207ef557..03d3d7d5 100644
--- a/bot/seasons/valentines/lovecalculator.py
+++ b/bot/seasons/valentines/lovecalculator.py
@@ -53,7 +53,7 @@ class LoveCalculator(Cog):
staff = ctx.guild.get_role(Roles.helpers).members
whom = random.choice(staff)
- def normalize(arg):
+ def normalize(arg: Union[Member, str]) -> str:
if isinstance(arg, Member):
# If we are given a member, return name#discrim without any extra changes
arg = str(arg)