mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-29 23:00:08 +00:00
Catch TypeError for unhashable annotation types
This commit is contained in:
parent
6b6cbc44ce
commit
223e95a252
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user