Skip to content

Commit f1ffffe

Browse files
committed
Fix SDK core back to proper commit, and update converter docs to pass gen-docs
1 parent fdb763b commit f1ffffe

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

temporalio/converter.py

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,42 +86,29 @@ class WorkflowSerializationContext(SerializationContext):
8686
"""Serialization context for workflows.
8787
8888
See :py:class:`SerializationContext` for more details.
89-
90-
Attributes:
91-
namespace: The namespace the workflow is running in.
92-
workflow_id: The ID of the workflow. Note that this is the ID of the workflow of which the
93-
payload being operated on is an input or output. Note also that when creating/describing
94-
schedules, this may be the workflow ID prefix as configured, not the final workflow ID
95-
when the workflow is created by the schedule.
9689
"""
9790

9891
namespace: str
99-
"""Namespace."""
92+
"""The namespace the workflow is running in."""
10093

10194
workflow_id: str | None
102-
"""Workflow ID."""
95+
"""The ID of the workflow.
96+
97+
Note that this is the ID of the workflow of which the payload being operated on is an input or
98+
output. Note also that when creating/describing schedules, this may be the workflow ID prefix
99+
as configured, not the final workflow ID when the workflow is created by the schedule.
100+
"""
103101

104102

105103
@dataclass(frozen=True)
106104
class ActivitySerializationContext(SerializationContext):
107105
"""Serialization context for activities.
108106
109107
See :py:class:`SerializationContext` for more details.
110-
111-
Attributes:
112-
namespace: Workflow/activity namespace.
113-
activity_id: Activity ID. Optional if this is an activity started from a workflow.
114-
activity_type: Activity type.
115-
activity_task_queue: Activity task queue.
116-
workflow_id: Workflow ID. Only set if this is an activity started from a workflow. Note, when creating/describing schedules,
117-
this may be the workflow ID prefix as configured, not the final workflow ID when the
118-
workflow is created by the schedule.
119-
workflow_type: Workflow Type. Only set if this is an activity started from a workflow.
120-
is_local: Whether the activity is a local activity. False if the activity was not started by a workflow.
121108
"""
122109

123110
namespace: str
124-
"""Namespace."""
111+
"""Workflow/activity namespace."""
125112

126113
activity_id: str | None
127114
"""Activity ID. Optional if this is an activity started from a workflow."""
@@ -143,7 +130,10 @@ class ActivitySerializationContext(SerializationContext):
143130
"""
144131

145132
workflow_id: str | None
146-
"""Workflow ID if this is an activity started from a workflow."""
133+
"""Workflow ID. Only set if this is an activity started from a workflow.
134+
135+
Note, when creating/describing schedules, this may be the workflow ID prefix as
136+
configured, not the final workflow ID when the workflow is created by the schedule."""
147137

148138
workflow_type: str | None
149139
"""Workflow type if this is an activity started from a workflow."""

0 commit comments

Comments
 (0)