diff options
author | 2023-07-19 14:43:16 +0100 | |
---|---|---|
committer | 2023-08-26 11:34:11 +0200 | |
commit | dea90f41408e06906d7a00658b45766e5c13acbf (patch) | |
tree | 439f24b6012e03d63cf6898f475130d8c9203ebb | |
parent | pass missing bot param (diff) |
appease linter
-rw-r--r-- | bot/exts/filtering/filtering.py | 2 | ||||
-rw-r--r-- | bot/exts/moderation/dm_relay.py | 2 | ||||
-rw-r--r-- | bot/exts/moderation/metabase.py | 2 | ||||
-rw-r--r-- | bot/exts/utils/internal.py | 2 | ||||
-rw-r--r-- | bot/exts/utils/snekbox/_cog.py | 3 |
5 files changed, 6 insertions, 5 deletions
diff --git a/bot/exts/filtering/filtering.py b/bot/exts/filtering/filtering.py index 47f0e898b..844f2942e 100644 --- a/bot/exts/filtering/filtering.py +++ b/bot/exts/filtering/filtering.py @@ -18,7 +18,7 @@ from discord.ext import commands, tasks from discord.ext.commands import BadArgument, Cog, Context, command, has_any_role from pydis_core.site_api import ResponseCodeError from pydis_core.utils import scheduling -from pydis_core.utils.paste_service import PasteTooLongError, PasteUploadError, PasteFile, send_to_paste_service +from pydis_core.utils.paste_service import PasteFile, PasteTooLongError, PasteUploadError, send_to_paste_service import bot import bot.exts.filtering._ui.filter as filters_ui diff --git a/bot/exts/moderation/dm_relay.py b/bot/exts/moderation/dm_relay.py index 6679af4cd..19fd9022a 100644 --- a/bot/exts/moderation/dm_relay.py +++ b/bot/exts/moderation/dm_relay.py @@ -1,6 +1,6 @@ import discord from discord.ext.commands import Cog, Context, command, has_any_role -from pydis_core.utils.paste_service import PasteTooLongError, PasteUploadError, PasteFile, send_to_paste_service +from pydis_core.utils.paste_service import PasteFile, PasteTooLongError, PasteUploadError, send_to_paste_service from bot.bot import Bot from bot.constants import BaseURLs, Emojis, MODERATION_ROLES diff --git a/bot/exts/moderation/metabase.py b/bot/exts/moderation/metabase.py index 5a5ca315b..cfb4f5f71 100644 --- a/bot/exts/moderation/metabase.py +++ b/bot/exts/moderation/metabase.py @@ -9,7 +9,7 @@ from aiohttp.client_exceptions import ClientResponseError from arrow import Arrow from async_rediscache import RedisCache from discord.ext.commands import Cog, Context, group, has_any_role -from pydis_core.utils.paste_service import PasteTooLongError, PasteUploadError, PasteFile, send_to_paste_service +from pydis_core.utils.paste_service import PasteFile, PasteTooLongError, PasteUploadError, send_to_paste_service from pydis_core.utils.scheduling import Scheduler from bot.bot import Bot diff --git a/bot/exts/utils/internal.py b/bot/exts/utils/internal.py index 043105646..ea27a5f50 100644 --- a/bot/exts/utils/internal.py +++ b/bot/exts/utils/internal.py @@ -11,7 +11,7 @@ from typing import Any import arrow import discord from discord.ext.commands import Cog, Context, group, has_any_role, is_owner -from pydis_core.utils.paste_service import PasteTooLongError, PasteUploadError, PasteFile, send_to_paste_service +from pydis_core.utils.paste_service import PasteFile, PasteTooLongError, PasteUploadError, send_to_paste_service from bot.bot import Bot from bot.constants import BaseURLs, DEBUG_MODE, Roles diff --git a/bot/exts/utils/snekbox/_cog.py b/bot/exts/utils/snekbox/_cog.py index f8f32d06d..842991440 100644 --- a/bot/exts/utils/snekbox/_cog.py +++ b/bot/exts/utils/snekbox/_cog.py @@ -11,7 +11,7 @@ from typing import Literal, NamedTuple, TYPE_CHECKING from discord import AllowedMentions, HTTPException, Interaction, Message, NotFound, Reaction, User, enums, ui from discord.ext.commands import Cog, Command, Context, Converter, command, guild_only from pydis_core.utils import interactions, paste_service -from pydis_core.utils.paste_service import send_to_paste_service, PasteFile +from pydis_core.utils.paste_service import PasteFile, send_to_paste_service from pydis_core.utils.regex import FORMATTED_CODE_REGEX, RAW_CODE_REGEX from bot.bot import Bot @@ -88,6 +88,7 @@ REDO_TIMEOUT = 30 SupportedPythonVersions = Literal["3.11"] + class FilteredFiles(NamedTuple): allowed: list[FileAttachment] blocked: list[FileAttachment] |