-
Notifications
You must be signed in to change notification settings - Fork 246
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(python): Add support for synchronous callbacks #407
Conversation
…but only for simple, positional arguments. Also, one test for getting a property is now failing and needs to be fixed.
…cks happening in the context of async callbacks.
…ter a Begin request.
def test_objectIdDoesNotGetReallocatedWhenTheConstructorPassesThisOut(): | ||
class PartiallyInitializedThisConsumerImpl(PartiallyInitializedThisConsumer): | ||
def consume_partially_initialized_this(self): | ||
def consume_partially_initialized_this(self, obj, dt, en): |
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.
Would be nice if you can also assert that dt
and en
have the correct values (like the Java implementation does).
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.
Delete the:
xfail_callbacks = pytest.mark.skip(reason="Implement callback support")
From the top of the file, since all of the xfail_callbacks should be gone now, we no longer need it around.
packages/jsii-python-runtime/src/jsii/_kernel/providers/process.py
Outdated
Show resolved
Hide resolved
packages/jsii-python-runtime/src/jsii/_kernel/providers/process.py
Outdated
Show resolved
Hide resolved
👯 |
### Bug Fixes * **kernel:** Transitively consider properties when deserializing structs ([#409](#409)) ([66789e8](66789e8)) * **python:** Lift the entire data class hierarchy ([#408](#408)) ([f813620](f813620)) ### Features * **python:** Add support for synchronous callbacks ([#407](#407)) ([4cb91b3](4cb91b3))
### Bug Fixes * **kernel:** Transitively consider properties when deserializing structs ([#409](#409)) ([66789e8](66789e8)) * **python:** Lift the entire data class hierarchy ([#408](#408)) ([f813620](f813620)) ### Features * **python:** Add support for synchronous callbacks ([#407](#407)) ([4cb91b3](4cb91b3))
This PR adds support for synchronous callbacks in Python as well as a number of other small fixes.
Fixes #405
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.