aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivia <[email protected]>2021-04-28 11:04:18 +0900
committerGitHub <[email protected]>2021-04-27 22:04:18 -0400
commita2df6e81b883fa514266f1ceb4d0216f91cae4b7 (patch)
tree8de63f32a8214f6d9ca358a0b9a167703919b018
parent[docs] Update notes for get_user and get_member (diff)
downloaddiscord.py-a2df6e81b883fa514266f1ceb4d0216f91cae4b7.tar.xz
discord.py-a2df6e81b883fa514266f1ceb4d0216f91cae4b7.zip
[commands] Update error message for Literal float/complex
-rw-r--r--discord/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py
index 293103cd..d78c35a9 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -866,7 +866,7 @@ def evaluate_annotation(
evaluated_args = tuple(evaluate_annotation(arg, globals, locals, cache, implicit_str=implicit_str) for arg in args)
if is_literal and not all(isinstance(x, (str, int, bool, type(None))) for x in evaluated_args):
- raise TypeError('Literal arguments must be of type str, int, bool, float or complex.')
+ raise TypeError('Literal arguments must be of type str, int, bool, or NoneType.')
if evaluated_args == args:
return tp