mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Fix nested Annotated calls not resolving
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user