diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c4ff62..c6d4aef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,13 +7,13 @@ ci: autoupdate_commit_msg: ':arrow_up: auto update by pre-commit hooks' repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.5.1 + rev: 26.10.0 hooks: - id: black stages: [pre-commit] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.16.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/nonebot_plugin_alconna/matcher.py b/src/nonebot_plugin_alconna/matcher.py index 68a215a..ce396ea 100644 --- a/src/nonebot_plugin_alconna/matcher.py +++ b/src/nonebot_plugin_alconna/matcher.py @@ -954,8 +954,8 @@ def ensure_context(self, bot: Bot, event: Event): def on_alconna( command: Alconna | str, - rule: None | Rule | T_RuleChecker = None, - after_rule: None | Rule | T_RuleChecker = None, + rule: Rule | T_RuleChecker | None = None, + after_rule: Rule | T_RuleChecker | None = None, skip_for_unmatch: bool = True, auto_send_output: bool | None = None, aliases: set[str] | tuple[str, ...] | None = None, @@ -966,7 +966,7 @@ def on_alconna( use_cmd_start: bool | None = None, use_cmd_sep: bool | None = None, response_self: bool | None = None, - permission: None | Permission | T_PermissionChecker = None, + permission: Permission | T_PermissionChecker | None = None, *, handlers: list[T_Handler | Dependent] | None = None, temp: bool = False,