From d43c9c0d309126f0ea391a36b95fb264f1c69aa2 Mon Sep 17 00:00:00 2001 From: sco1 Date: Thu, 19 Sep 2019 08:37:23 -0700 Subject: Update imports for applied code review suggestions --- bot/cogs/modlog.py | 2 +- bot/cogs/reddit.py | 2 +- bot/cogs/security.py | 1 - bot/cogs/wolfram.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bot/cogs/modlog.py b/bot/cogs/modlog.py index 2eb7b1eab..15c293d92 100644 --- a/bot/cogs/modlog.py +++ b/bot/cogs/modlog.py @@ -11,7 +11,7 @@ from discord import ( RawMessageUpdateEvent, Role, TextChannel, User, VoiceChannel ) from discord.abc import GuildChannel -from discord.ext.commands import Bot, Cog +from discord.ext.commands import Bot, Cog, Context from bot.constants import ( Channels, Colours, Emojis, Event, Guild as GuildConstant, Icons, URLs diff --git a/bot/cogs/reddit.py b/bot/cogs/reddit.py index 7bd11fb1b..63a57c5c6 100644 --- a/bot/cogs/reddit.py +++ b/bot/cogs/reddit.py @@ -3,7 +3,7 @@ import logging import random import textwrap from datetime import datetime, timedelta -from typing import List, Optional +from typing import List from discord import Colour, Embed, Message, TextChannel from discord.ext.commands import Bot, Cog, Context, group diff --git a/bot/cogs/security.py b/bot/cogs/security.py index 7274b8033..4960aa896 100644 --- a/bot/cogs/security.py +++ b/bot/cogs/security.py @@ -1,5 +1,4 @@ import logging -from typing import Optional from discord.ext.commands import Bot, Cog, Context, NoPrivateMessage diff --git a/bot/cogs/wolfram.py b/bot/cogs/wolfram.py index ea9307352..7c218eb8c 100644 --- a/bot/cogs/wolfram.py +++ b/bot/cogs/wolfram.py @@ -1,6 +1,6 @@ import logging from io import BytesIO -from typing import List, Optional, Tuple +from typing import Callable, List, Optional, Tuple from urllib import parse import discord -- cgit v1.2.3