Closed zhiruiluo closed 1 year ago
Absolutely, we will pass the test by removing the from __future__ import annotations
from this file.
Here is my proposed fix #182. Added an entry to the forward_refs_to_types in get_field_annotation.py to fix the error. Added a test_issue_181.py file about this issue.
Looks like that this is related to #168.
Thanks for review my code, @lebrice. The fix is enclosed in #183. I am closing this issue now.
Describe the bug the
from __future__ import annotations
cause add_arguments "NameError" when using Serializable It will raise the following error: "NameError: name 'D' is not defined"To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Actual behavior A clear and concise description of what is happening.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.