aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
diff options
context:
space:
mode:
authorJames <[email protected]>2021-07-31 02:30:25 +0100
committerGitHub <[email protected]>2021-07-30 21:30:25 -0400
commit608e3b5b6c20c46c535b89fcebcf5bf2048cb63c (patch)
tree6ce1edd727b08b6587fa2e39415772888686c2d2 /discord/utils.py
parent[commands] Fix NSFW check within threads under NSFW channels (diff)
downloaddiscord.py-608e3b5b6c20c46c535b89fcebcf5bf2048cb63c.tar.xz
discord.py-608e3b5b6c20c46c535b89fcebcf5bf2048cb63c.zip
Rename types.Union -> UnionType for bpo-44732
Diffstat (limited to 'discord/utils.py')
-rw-r--r--discord/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py
index dac6f9da..920222a9 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -916,7 +916,7 @@ def evaluate_annotation(
is_literal = False
args = tp.__args__
if not hasattr(tp, '__origin__'):
- if PY_310 and tp.__class__ is types.Union: # type: ignore
+ if PY_310 and tp.__class__ is types.UnionType: # type: ignore
converted = Union[args] # type: ignore
return evaluate_annotation(converted, globals, locals, cache)