Closed fpfeng closed 1 year ago
https://github.com/pydantic/pydantic/issues/1298
I have tried update_forward_refs
with my main config model, no luck still got same error.
xoa_core/core/test_suites/datasets.py#L89
def build_test_params(_test_config: Type["BaseModel"]) -> Type["TestParameters"]:
class TP(TestParameters):
config: _test_config
TP.update_forward_refs(_test_config=_test_config) # add this line
return TP
It's working now
OK, Added.
Error popup with main branch code