-
Notifications
You must be signed in to change notification settings - Fork 121
Generated new Python types #2827
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
Conversation
| genkit update-sdk | ||
| [ ! -f tagging.py ] || mv tagging.py internal/genkit/tagging.py | ||
| [ ! -f .github/workflows/next-changelog.yml ] || rm .github/workflows/next-changelog.yml | ||
| pushd experimental/python && make codegen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why pushd vs cd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we use popd anywhere, lets use cd here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm, I see this is what @kanterov recommends. Not sure why though.
|
@andrewnester where do we do git commit? code generation should run before that |
| """ | ||
| :meta private: [EXPERIMENTAL] | ||
| """ | ||
| """""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kanterov Can you take a look at why this yields an empty doc block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pietern it works as intended, class doesn't have experimental annotation and no description in JSON schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't empty docstrings be omitted from the output instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I remember missing class doc string breaks the parsing of field doc strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, thanks for clarifying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's still needed. I there was a problem with VSCode, but I have found that it's resolved now. Databricks SDK doesn't add empty doc strings, at least we should keep both consistent, I will create a PR to remove empty doc strings.
Changes
Generated new Python types by running
pushd experimental/python && make codegenWhy
This PR #2788 introduced new task types but Python types were not generated causing schema checks to fail.