From 7ace5fefa20db42227e91ff5a95a6ebc159f8771 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:13:59 +0000 Subject: [PATCH 1/2] chore(pre-commit): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/isort: 8.0.1 → 9.0.0a3](https://github.com/PyCQA/isort/compare/8.0.1...9.0.0a3) - [github.com/DanielNoord/pydocstringformatter: v0.7.5 → v1.0.0](https://github.com/DanielNoord/pydocstringformatter/compare/v0.7.5...v1.0.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78e80c2a78..438719f37a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: - id: pyupgrade exclude: \.(po|pot|yml|yaml)$ - repo: https://github.com/PyCQA/isort - rev: 8.0.1 + rev: 9.0.0a3 hooks: - id: isort exclude: \.(po|pot|yml|yaml)$ @@ -87,7 +87,7 @@ repos: args: [--prose-wrap=always, --print-width=88] exclude: \.(po|pot|yml|yaml)$ - repo: https://github.com/DanielNoord/pydocstringformatter - rev: v0.7.5 + rev: v1.0.0 hooks: - id: pydocstringformatter exclude: \.(po|pot|yml|yaml)$ From 1ce3ee699dd3ad80d3f1d73a9a1c8285ffee4363 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:14:28 +0000 Subject: [PATCH 2/2] style(pre-commit): auto fixes from pre-commit.com hooks --- discord/commands/core.py | 6 +----- discord/guild.py | 5 +---- discord/integrations.py | 4 +--- discord/threads.py | 4 +--- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/discord/commands/core.py b/discord/commands/core.py index 88cbbbb1c6..0def58b528 100644 --- a/discord/commands/core.py +++ b/discord/commands/core.py @@ -47,11 +47,7 @@ from ..channel import PartialMessageable, _threaded_guild_channel_factory from ..enums import Enum as DiscordEnum -from ..enums import ( - IntegrationType, - InteractionContextType, - SlashCommandOptionType, -) +from ..enums import IntegrationType, InteractionContextType, SlashCommandOptionType from ..errors import ( ApplicationCommandError, ApplicationCommandInvokeError, diff --git a/discord/guild.py b/discord/guild.py index 0f9fbdf432..0053cbfd61 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -119,10 +119,7 @@ from .template import Template from .types.guild import Ban as BanPayload from .types.guild import Guild as GuildPayload - from .types.guild import ( - GuildFeature, - MFALevel, - ) + from .types.guild import GuildFeature, MFALevel from .types.guild import ModifyIncidents as ModifyIncidentsPayload from .types.member import Member as MemberPayload from .types.threads import Thread as ThreadPayload diff --git a/discord/integrations.py b/discord/integrations.py index 60ecbdde3f..f5d67faad8 100644 --- a/discord/integrations.py +++ b/discord/integrations.py @@ -50,9 +50,7 @@ from .types.integration import ( IntegrationApplication as IntegrationApplicationPayload, ) - from .types.integration import ( - IntegrationType, - ) + from .types.integration import IntegrationType from .types.integration import StreamIntegration as StreamIntegrationPayload diff --git a/discord/threads.py b/discord/threads.py index 8d7781770a..81d973775f 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -32,9 +32,7 @@ ChannelType, ) from .enums import ThreadArchiveDuration as ThreadArchiveDurationEnum -from .enums import ( - try_enum, -) +from .enums import try_enum from .errors import ClientException from .flags import ChannelFlags from .mixins import Hashable