-
Notifications
You must be signed in to change notification settings - Fork 57
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
[Bug] Update Pydantic converter example to reflect with_child_unrestricted
changes
#126
Comments
Thanks! Agreed we can now perform that TODO. |
Any update on this one? Currently I'm using Pydantic v2 models with:
and
Would love to see an example without seeing warnings from https://github.com/temporalio/sdk-python/blob/main/temporalio/converter.py#L561 |
That warning is unrelated to this issue. This issue is simply changing how the sandbox is created. That warning is because presumably you are not using a custom converter like https://github.com/temporalio/samples-python/blob/main/pydantic_converter/converter.py and configuring it on the client. |
I've tried that example actually, with just one difference which is using I am still getting the issue on |
We have not tested or created a sample for v2. There is a separate issue at #97 for that. But I think the issue to resolve this unrelated TODO for v1 is unrelated to your issue. (also transferring this issue to the samples repo since it doesn't belong in primary repo) |
What are you really trying to do?
I want to use Pydantic and datetime objects as input/outputs/signals/queries to workflows and activities.
Describe the bug
The recommended reference example for the Pydantic converter creates a new sandbox to work around a bug in Pydantic.
There is a TODO in the code below:
https://github.com/temporalio/samples-python/blob/main/pydantic_converter/worker.py
that says:
The issue in question has now been merged but the example hasn't been updated.
Minimal Reproduction
https://github.com/temporalio/samples-python/blob/main/pydantic_converter/worker.py
Environment/Versions
n/a
Additional context
n/a
Thanks!
The text was updated successfully, but these errors were encountered: