should fix that a tiny bit.

This commit is contained in:
JDJG Inc. Official 2021-10-27 09:10:51 -04:00
parent 2bd28a7990
commit e9850566e8

View File

@ -953,8 +953,7 @@ 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.")
raise TypeError("Literal arguments must be of type str, int, bool, or NoneType.")
if evaluated_args == args:
return tp