-
Notifications
You must be signed in to change notification settings - Fork 472
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
feat(binding/python): allow setting append/buffer/more in write() call #3256
Conversation
f1cc133
to
17f4ce5
Compare
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.
Please format the .pyi
file with black.
This PR mostly LGTM. Needs @messense to confirm the pyi changes. |
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.
LGTM, thanks!
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.
Thanks a lot!
apache#3256) * binding/python: add new parameters to stub methods * add parameters to implementations * run cargo fmt * make clippy happy * run black on py stubs * Operator: read and apply kwargs in PyDict * refactor kwargs recognition to struct WriteOptions * touch test to see if WriteOptions worked * Revert "touch test to see if WriteOptions worked" This reverts commit bb38127. * remove WriteOptions and reuse od::OpWrite * rewrite build_opwrite()
Fixes #3242
This PR adds named parameters to python
Operator.write()
AsyncOperator.write()
methods, to allow append/buffer/content_type/more to be set.