diff options
| author | 2019-10-03 03:46:29 -0400 | |
|---|---|---|
| committer | 2019-10-03 03:46:29 -0400 | |
| commit | 76caa7577230a9a5617c9ea9ba28190b2082b571 (patch) | |
| tree | 008fcad7f6ecf89f564b588ab161b850817b10ce | |
| parent | Minor improvements for pride facts cog (diff) | |
Fix linter issues
I don't understand why these linter issues don't come up when I run flake8 myself
| -rw-r--r-- | bot/seasons/pride/pride_facts.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/seasons/pride/pride_facts.py b/bot/seasons/pride/pride_facts.py index d691b7e7..3673fa95 100644 --- a/bot/seasons/pride/pride_facts.py +++ b/bot/seasons/pride/pride_facts.py @@ -1,8 +1,8 @@ -from datetime import datetime import json +from datetime import datetime import logging -from typing import Union import random +from typing import Union from pathlib import Path import dateutil.parser @@ -24,7 +24,7 @@ class PrideFacts(commands.Cog): with open(Path("bot/resources/pride/facts.json"), "r", encoding="utf-8") as f: return json.load(f) - async def random_fact(self, ctx: commands.Context): + async def random_fact(self, ctx: commands.Context) -> None: """Provides a fact from any valid day.""" now = datetime.utcnow() previous_years_facts = (self.facts[x] for x in self.facts.keys() if int(x) < now.year) @@ -35,7 +35,7 @@ class PrideFacts(commands.Cog): except IndexError: await ctx.send("No facts available") - async def select_fact(self, ctx: commands.Context, _date: Union[str, datetime]): + async def select_fact(self, ctx: commands.Context, _date: Union[str, datetime]) -> None: """Provides the fact for the specified day, if valid.""" now = datetime.utcnow() if isinstance(_date, str): |