From 4152819a3c12d85dc85e5a053bfaf08f7ecd1c23 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 4 Jul 2021 05:55:29 -0400 Subject: [PATCH] Ignore linting error when accessing Python 3.10 unions --- discord/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/utils.py b/discord/utils.py index 80aa4b894..6070882f2 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -896,7 +896,7 @@ def evaluate_annotation( is_literal = False args = tp.__args__ if not hasattr(tp, '__origin__'): - if PY_310 and tp.__class__ is types.Union: + if PY_310 and tp.__class__ is types.Union: # type: ignore converted = Union[args] # type: ignore return evaluate_annotation(converted, globals, locals, cache)