mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Catch TypeError for unhashable annotation types
This commit is contained in:
@@ -750,7 +750,7 @@ def get_supported_annotation(
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
return (_mapping[annotation], MISSING, True)
|
return (_mapping[annotation], MISSING, True)
|
||||||
except KeyError:
|
except (KeyError, TypeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if isinstance(annotation, Transformer):
|
if isinstance(annotation, Transformer):
|
||||||
|
Reference in New Issue
Block a user