From 26fc69418969b8a92efe916b989ab24a4b7d6971 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 1 Mar 2022 05:00:59 -0500 Subject: [PATCH] Fix Optional normalisation not working properly --- discord/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/discord/utils.py b/discord/utils.py index 0f9cdb274..f6280ec61 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -1047,9 +1047,6 @@ def evaluate_annotation( 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, or NoneType.') - if evaluated_args == args: - return tp - try: return tp.copy_with(evaluated_args) except AttributeError: