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: