Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 16, 2024
1 parent bd4484e commit 7213c0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions discord/raw_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class RawReactionClearEmojiEvent(_RawReprMixin):
"data",
"burst_colours",
"burst_colors",
"type"
"type",
)

def __init__(self, data: ReactionClearEmojiEvent, emoji: PartialEmoji) -> None:
Expand Down Expand Up @@ -817,7 +817,15 @@ class RawMessagePollVoteEvent(_RawReprMixin):
The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway#message-poll-vote-add>`
"""

__slots__ = ("user_id", "message_id", "answer_id", "channel_id", "guild_id", "data", "added")
__slots__ = (
"user_id",
"message_id",
"answer_id",
"channel_id",
"guild_id",
"data",
"added",
)

def __init__(self, data: MessagePollVoteEvent, added: bool) -> None:
self.user_id: int = int(data["user_id"])
Expand Down
2 changes: 1 addition & 1 deletion discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def decorated(*args: P.args, **kwargs: P.kwargs) -> T:
since=since,
removed=removed,
reference=reference,
stacklevel=stacklevel
stacklevel=stacklevel,
)
return func(*args, **kwargs)

Expand Down

0 comments on commit 7213c0a

Please sign in to comment.