Browse Source

Catch TypeError for unhashable annotation types

pull/9443/head
Rapptz 2 years ago
parent
commit
223e95a252
  1. 2
      discord/app_commands/transformers.py

2
discord/app_commands/transformers.py

@ -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…
Cancel
Save