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
Missing lazy_import in model to_multipart() #931
Comments
Looking again, is there a reason why the check for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In the end-to-end tests, the file
golden-record/my_test_api_client/models/body_upload_file_tests_upload_post.py
passes type checking, but would fail in a runtime call in a call toBodyUploadFileTestsUploadPost.to_multipart()
at the following point:The exception raised is
NameError: name 'BodyUploadFileTestsUploadPostSomeNullableObject' is not defined
.The analogous point in
to_dict()
is avoided because the required model is imported:It appears that
model.py.jinja
needs to be updated to include the necessary lazy imports:The text was updated successfully, but these errors were encountered: