should fix that a tiny bit.
This commit is contained in:
parent
2bd28a7990
commit
e9850566e8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user