Skip to content

Commit

Permalink
⬆️ auto update by pre-commit hooks (#39)
Browse files Browse the repository at this point in the history
* ⬆️ auto update by pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.5.6](astral-sh/ruff-pre-commit@v0.5.0...v0.5.6)
- [github.com/psf/black: 24.4.2 → 24.8.0](psf/black@24.4.2...24.8.0)

* 🚨 auto fix by pre-commit 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 Aug 6, 2024
1 parent 6984a16 commit 73bf2ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.5.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -20,7 +20,7 @@ repos:
stages: [commit]

- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
stages: [commit]
Expand Down
6 changes: 2 additions & 4 deletions nonebot_plugin_all4one/middlewares/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

from anyio import open_file
from nonebot.adapters import Bot, Event, Message
from nonebot.adapters.onebot.v12.event import BotSelf
from nonebot.adapters.onebot.v12 import UnsupportedAction
from nonebot.adapters.onebot.v12.exception import BadParam
from nonebot.adapters.onebot.v12 import Event as OneBotEvent
from nonebot.adapters.onebot.v12.event import BotSelf

from ..database import get_file, upload_file

Expand Down Expand Up @@ -112,9 +112,7 @@ async def get_self_info(
"""获取机器人自身信息"""
raise NotImplementedError

async def get_user_info(
self, *, user_id: str, **kwargs: Any
) -> dict[
async def get_user_info(self, *, user_id: str, **kwargs: Any) -> dict[
Union[Literal["user_id", "user_name", "user_displayname", "user_remark"], str],
str,
]:
Expand Down
4 changes: 1 addition & 3 deletions nonebot_plugin_all4one/middlewares/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@ async def get_self_info(
}

@supported_action
async def get_user_info(
self, *, user_id: str, **kwargs: Any
) -> dict[
async def get_user_info(self, *, user_id: str, **kwargs: Any) -> dict[
Union[Literal["user_id", "user_name", "user_displayname", "user_remark"], str],
str,
]:
Expand Down

0 comments on commit 73bf2ae

Please sign in to comment.