Catch TypeError for unhashable annotation types

This commit is contained in:
Rapptz 2023-06-04 07:52:09 -04:00
parent 6b6cbc44ce
commit 223e95a252

View File

@ -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):