[Bug] Update Pydantic converter example to reflect `with_child_unrestricted` changes
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 55/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
打开 pydantic_converter/worker.py,阅读关于在 sdk-python issue 254 修复并发布后使用 with_child_unrestricted 的 TODO。更新参考示例以反映这一变更,然后验证 Pydantic 转换器示例不再依赖 issue 中描述的 workaround。
由索引模型根据 Issue 内容生成。
描述
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:
TODO(cretz): Use with_child_unrestricted when https://github.com/temporalio/sdk-python/issues/254 is fixed and released
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!
- 主要语言
- Python
- 星标
- 367
- 派生
- 121
- 平均合并
- 3 天 20 小时
- 30 天内合并 PR
- 11
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
temporalio/samples-python 的其他 Issue
-
enhancement
temporalio/samples-python#254 · 1 条评论 · 已指派 1 人 ·
-
enhancement
temporalio/samples-python#253 · 已指派 1 人 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
temporalio/samples-python#231 · 1 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
temporalio/samples-python#192 · 2 条评论 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
temporalio/samples-python#191 ·
查看 temporalio/samples-python 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 88/100
use-agent-os/agent-os#3314 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
BasedHardware/omi#15662 · 1 条评论 ·
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 62/100
AiursoftWeb/AnduinOS-2#19 ·