The error was happend in get_field_type_from_annotations in get_field_annotations.py.
The comments under get_field_type_from_annotations said:
"NOTE: If you get errors of this kind from the function below, then you might want to add an entry to the forward_refs_to_types dict above."
I added {"D": TypeVar("D")" to the forward_refs_to_types.
If add D = TypeVar("D", bound="SerializableMixin") to it, this will cause circle import error.
I also added a test_issue_181 for this issue #181 .
The error was happend in
get_field_type_from_annotations
in get_field_annotations.py.The comments under get_field_type_from_annotations said: "NOTE: If you get errors of this kind from the function below, then you might want to add an entry to the
forward_refs_to_types
dict above."I added
{"D": TypeVar("D")"
to the forward_refs_to_types. If addD = TypeVar("D", bound="SerializableMixin")
to it, this will cause circle import error.I also added a test_issue_181 for this issue #181 .
All tests have passed with this commit.