diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 36f4b7a..4c615ac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black args: @@ -19,7 +19,7 @@ repos: hooks: - id: flake8 - repo: https://github.com/PyCQA/pylint - rev: v3.3.3 + rev: v3.3.4 hooks: - id: pylint args: @@ -51,7 +51,7 @@ repos: args: - --py36-plus - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 6.0.0 hooks: - id: isort name: isort diff --git a/components/util.py b/components/util.py index a80880b..fa10eab 100644 --- a/components/util.py +++ b/components/util.py @@ -101,7 +101,7 @@ async def rate_limit_tracker(_: Update, context: ContextTypes.DEFAULT_TYPE) -> N def rate_limit( - func: Callable[[Update, ContextTypes.DEFAULT_TYPE], Coroutine[Any, Any, None]] + func: Callable[[Update, ContextTypes.DEFAULT_TYPE], Coroutine[Any, Any, None]], ) -> Callable[[Update, ContextTypes.DEFAULT_TYPE], Coroutine[Any, Any, None]]: """ Rate limit command so that RATE_LIMIT_SPACING non-command messages are