Fix nested Annotated calls not resolving

This commit is contained in:
Rapptz
2022-08-17 10:38:12 -04:00
parent 8dd186cf1e
commit 1c7747fe9d
7 changed files with 70 additions and 18 deletions

View File

@ -750,9 +750,6 @@ def get_supported_annotation(
if isinstance(annotation, Transformer):
return (annotation, MISSING, False)
if hasattr(annotation, '__metadata__'):
return get_supported_annotation(annotation.__metadata__[0])
if inspect.isclass(annotation):
if issubclass(annotation, Transformer):
return (annotation(), MISSING, False)