Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 3 additions & 1 deletion discord/ext/bridge/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
4 changes: 3 additions & 1 deletion discord/integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
4 changes: 3 additions & 1 deletion discord/raw_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion discord/sticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down