Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
⬆️ auto update by pre-commit hooks (#135)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Dec 3, 2024
1 parent 086b5b8 commit 430e133
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
stages: [pre-commit]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.8.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def handle_event(self, event: Event) -> None:

@staticmethod
def _extract_send_message(
message: Union[str, Message, MessageSegment]
message: Union[str, Message, MessageSegment],
) -> Dict[str, Any]:
message = MessageSegment.text(message) if isinstance(message, str) else message
message = message if isinstance(message, Message) else Message(message)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


async def _guild_channel_admin(
event: Union[AtMessageCreateEvent, MessageCreateEvent]
event: Union[AtMessageCreateEvent, MessageCreateEvent],
) -> bool:
return 5 in getattr(event.member, "roles", ())

Expand Down

0 comments on commit 430e133

Please sign in to comment.