Skip to content

Commit

Permalink
🚨 auto fix by pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 3, 2024
1 parent 3516ce0 commit 91db29c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def extract_kaiheila_role(bot: Bot, event: Event, manager: SubjectManager):

guild_id: Optional[str] = event.extra.guild_id
getattr(event, "group_id", None) or getattr(event.extra.body, "channel_id", None)
author: Optional["User"] = event.extra.author
author: Optional[User] = event.extra.author

if author is not None:
li = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def extract_onebot_v11_group_role(bot: Bot, event: Event, manager: SubjectManage
return

group_id = getattr(event, "group_id", None)
sender: Optional["Sender"] = getattr(event, "sender", None)
sender: Optional[Sender] = getattr(event, "sender", None)

if group_id is not None and sender is not None:
li = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def extract_qqguild_role(bot: Bot, event: Event, manager: SubjectManager):

guild_id: Optional[str] = getattr(event, "guild_id", None)
channel_id: Optional[str] = getattr(event, "channel_id", None)
member: Optional["Member"] = getattr(event, "member", None)
member: Optional[Member] = getattr(event, "member", None)

if member is not None:
li = []
Expand Down

0 comments on commit 91db29c

Please sign in to comment.