FIx _accent_colour
being improperly typehinted
#57
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "typehinting-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
_accent_colour
indiscord.User
was typehinted as aOptional[str]
when it's stated to be anOptional[int]
(or, well?integer
) by the Discord API docs and is treated by the library as anOptional[int]
whenUser.accent_colour
is called. This PR is a quick change to fix that (and make Pylance happy).Checklist
Looks good, checked at runtime and it is indeed
int
.