Skip to content

Commit

Permalink
Change some type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Nov 15, 2024
1 parent a64ce5b commit ba5a739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions novus/models/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class Channel(Hashable, Messageable):
# parent: Channel | None
last_pin_timestamp: DiscordDatetime | None
rtc_region: str | None
video_quality_mode: None
video_quality_mode: int | None
message_count: int | None
member_count: int | None
# <thread_metadata>
Expand Down Expand Up @@ -305,7 +305,7 @@ def _update(self, data: payloads.Channel) -> Self:
else {
"role": PermissionOverwriteType.ROLE,
"member": PermissionOverwriteType.MEMBER,
}[d["type"].casefold()]
}[d["type"].casefold()] # pyright: ignore
),
allow=Permissions(int(d["allow"])),
deny=Permissions(int(d["deny"])),
Expand Down

0 comments on commit ba5a739

Please sign in to comment.