mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-13 13:25:26 +00:00
Typehint Colour.__init__ parameter
This commit is contained in:
parent
565b41b0b2
commit
9a61a5a063
@ -78,7 +78,7 @@ class Colour:
|
|||||||
|
|
||||||
__slots__ = ('value',)
|
__slots__ = ('value',)
|
||||||
|
|
||||||
def __init__(self, value):
|
def __init__(self, value: int):
|
||||||
if not isinstance(value, int):
|
if not isinstance(value, int):
|
||||||
raise TypeError(f'Expected int parameter, received {value.__class__.__name__} instead.')
|
raise TypeError(f'Expected int parameter, received {value.__class__.__name__} instead.')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user