Skip to content

Commit

Permalink
chore(pre-commit): pre-commit autoupdate (#2705)
Browse files Browse the repository at this point in the history
* chore(pre-commit): pre-commit autoupdate

updates:
- [github.com/PyCQA/isort: 5.13.2 → 6.0.0](PyCQA/isort@5.13.2...6.0.0)
- [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@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>
  • Loading branch information
pre-commit-ci[bot] authored Feb 4, 2025
1 parent 1b6d2bd commit fa15c1d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
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

0 comments on commit fa15c1d

Please sign in to comment.