Skip to content

Commit 02865fb

Browse files
fix: typehint issue (#2917)
Update role.py Co-authored-by: Paillat <[email protected]>
1 parent 3b8b79f commit 02865fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/role.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def _update(self, data: RolePayload):
402402
self._permissions: int = int(data.get("permissions", 0))
403403
self.position: int = data.get("position", 0)
404404
self._colour: int = data.get("color", 0)
405-
self.colours: RoleColours | None = RoleColours._from_payload(data["colors"])
405+
self.colours: RoleColours = RoleColours._from_payload(data["colors"])
406406
self.hoist: bool = data.get("hoist", False)
407407
self.managed: bool = data.get("managed", False)
408408
self.mentionable: bool = data.get("mentionable", False)
@@ -574,8 +574,8 @@ async def edit(
574574
permissions: Permissions = MISSING,
575575
colour: Colour | int = MISSING,
576576
color: Colour | int = MISSING,
577-
colours: RoleColours | None = MISSING,
578-
colors: RoleColours | None = MISSING,
577+
colours: RoleColours = MISSING,
578+
colors: RoleColours = MISSING,
579579
holographic: bool = MISSING,
580580
hoist: bool = MISSING,
581581
mentionable: bool = MISSING,

0 commit comments

Comments
 (0)