diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2c2ec53..8032416 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,14 +5,14 @@ ci: style: auto fixes from pre-commit hooks repos: - - repo: https://github.com/psf/black - rev: 23.9.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black name: Running black in all files. - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 7.0.0 hooks: - id: isort args: ["--profile", "black", "--extend-skip", "examples"] @@ -23,7 +23,7 @@ repos: files: ^examples/ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: check-ast name: Check if python files are valid syntax for the ast parser diff --git a/nextcord/ext/menus/menus.py b/nextcord/ext/menus/menus.py index d34e969..be6e99b 100644 --- a/nextcord/ext/menus/menus.py +++ b/nextcord/ext/menus/menus.py @@ -126,8 +126,7 @@ def action(self, value: Callable[..., Coroutine[Any, Any, Any]]): def __call__(self, menu: "Menu", payload: nextcord.RawReactionActionEvent): if self.skip_if is not None and self.skip_if(menu): - async def dummy(): - ... + async def dummy(): ... return dummy() return self._action(menu, payload)