From 9a61a5a0630f54a2365a11c110890c6952c88380 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 24 Aug 2021 03:15:28 -0400 Subject: [PATCH] Typehint Colour.__init__ parameter --- discord/colour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/colour.py b/discord/colour.py index 08b4831a0..241c1e0eb 100644 --- a/discord/colour.py +++ b/discord/colour.py @@ -78,7 +78,7 @@ class Colour: __slots__ = ('value',) - def __init__(self, value): + def __init__(self, value: int): if not isinstance(value, int): raise TypeError(f'Expected int parameter, received {value.__class__.__name__} instead.')