From fa15c1d6dd49fb641120c3300fe28961cf76ebca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2025 02:04:43 +0100 Subject: [PATCH] chore(pre-commit): pre-commit autoupdate (#2705) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(pre-commit): pre-commit autoupdate updates: - [github.com/PyCQA/isort: 5.13.2 → 6.0.0](https://github.com/PyCQA/isort/compare/5.13.2...6.0.0) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- discord/ext/bridge/core.py | 4 +++- discord/ext/commands/core.py | 2 +- discord/integrations.py | 4 +++- discord/raw_models.py | 4 +++- discord/sticker.py | 2 +- 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63f0586211..e3129374da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,12 +26,12 @@ repos: - id: pyupgrade exclude: \.(po|pot|yml|yaml)$ - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 6.0.0 hooks: - id: isort exclude: \.(po|pot|yml|yaml)$ - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black args: [--safe, --quiet] diff --git a/discord/ext/bridge/core.py b/discord/ext/bridge/core.py index 103f345693..f07b02fa39 100644 --- a/discord/ext/bridge/core.py +++ b/discord/ext/bridge/core.py @@ -41,7 +41,9 @@ ) from ...utils import MISSING, find, get, warn_deprecated -from ..commands import BadArgument +from ..commands import ( + BadArgument, +) from ..commands import Bot as ExtBot from ..commands import ( Command, diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 992ba05956..6f6ef1dffa 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -1695,7 +1695,7 @@ def decorator( func: ( Callable[Concatenate[ContextT, P], Coro[Any]] | Callable[Concatenate[CogT, ContextT, P], Coro[Any]] - ) + ), ) -> CommandT: if isinstance(func, Command): raise TypeError("Callback is already a command.") diff --git a/discord/integrations.py b/discord/integrations.py index f5d67faad8..60ecbdde3f 100644 --- a/discord/integrations.py +++ b/discord/integrations.py @@ -50,7 +50,9 @@ 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/raw_models.py b/discord/raw_models.py index a2881839a6..73da688b7f 100644 --- a/discord/raw_models.py +++ b/discord/raw_models.py @@ -39,7 +39,9 @@ from .partial_emoji import PartialEmoji from .state import ConnectionState from .threads import Thread - from .types.raw_models import AuditLogEntryEvent + from .types.raw_models import ( + AuditLogEntryEvent, + ) from .types.raw_models import AutoModActionExecutionEvent as AutoModActionExecution from .types.raw_models import ( BulkMessageDeleteEvent, diff --git a/discord/sticker.py b/discord/sticker.py index fa5e75eaf8..d204c4b369 100644 --- a/discord/sticker.py +++ b/discord/sticker.py @@ -533,7 +533,7 @@ async def delete(self, *, reason: str | None = None) -> None: def _sticker_factory( - sticker_type: Literal[1, 2] + sticker_type: Literal[1, 2], ) -> tuple[type[StandardSticker | GuildSticker | Sticker], StickerType]: value = try_enum(StickerType, sticker_type) if value == StickerType.standard: