Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue where in a proper set of documentation, a field_info.annotation can be of type "type" #496

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mmangione
Copy link

This is a PR to fix the following issue:
#492

The except clause of _get_array_outer_type can return field_info.annotation as a list, so the __args__ element is not valid. Check for this type and return the raw element.
The type that is not being properly handled is "type". Odd, for certain, but never an issue before the latest version of BlackSheep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant