aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-04 05:55:29 -0400
committerRapptz <[email protected]>2021-07-04 05:55:29 -0400
commit4152819a3c12d85dc85e5a053bfaf08f7ecd1c23 (patch)
tree15c5d77a1cc735de997ca97a3c40148fee22fd76 /discord
parentFix some typing errors and reformat enums.py (diff)
downloaddiscord.py-4152819a3c12d85dc85e5a053bfaf08f7ecd1c23.tar.xz
discord.py-4152819a3c12d85dc85e5a053bfaf08f7ecd1c23.zip
Ignore linting error when accessing Python 3.10 unions
Diffstat (limited to 'discord')
-rw-r--r--discord/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py
index 80aa4b89..6070882f 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)