mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 07:53:01 +00:00
Type up **kwargs of various methods
This commit is contained in:
@@ -27,7 +27,7 @@ import random
|
||||
|
||||
from typing import (
|
||||
Any,
|
||||
Optional,
|
||||
Optional,
|
||||
Tuple,
|
||||
Type,
|
||||
TypeVar,
|
||||
@@ -65,7 +65,7 @@ class Colour:
|
||||
.. describe:: str(x)
|
||||
|
||||
Returns the hex format for the colour.
|
||||
|
||||
|
||||
.. describe:: int(x)
|
||||
|
||||
Returns the raw colour value.
|
||||
@@ -95,7 +95,7 @@ class Colour:
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f'#{self.value:0>6x}'
|
||||
|
||||
|
||||
def __int__(self) -> int:
|
||||
return self.value
|
||||
|
||||
|
Reference in New Issue
Block a user