File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -470,6 +470,7 @@ class _CompleteAsyncError(BaseException):
470470def payload_converter () -> temporalio .converter .PayloadConverter :
471471 """Get the payload converter for the current activity.
472472
473+ The returned converter has :py:class:`temporalio.converter.ActivitySerializationContext` set.
473474 This is often used for dynamic activities to convert payloads.
474475 """
475476 return _Context .current ().payload_converter
Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ class ActivitySerializationContext(BaseWorkflowSerializationContext):
139139 is_local : bool
140140
141141
142- # TODO: duck typing or nominal typing?
143142class WithSerializationContext (ABC ):
144143 """Interface for classes that can use serialization context.
145144
Original file line number Diff line number Diff line change 6161import temporalio .workflow
6262from temporalio .nexus ._util import ServiceHandlerT
6363
64- from .api .failure .v1 .message_pb2 import Failure
6564from .types import (
6665 AnyType ,
6766 CallableAsyncNoParam ,
@@ -1148,6 +1147,7 @@ def patched(id: str) -> bool:
11481147def payload_converter () -> temporalio .converter .PayloadConverter :
11491148 """Get the payload converter for the current workflow.
11501149
1150+ The returned converter has :py:class:`temporalio.converter.WorkflowSerializationContext` set.
11511151 This is often used for dynamic workflows/signals/queries to convert
11521152 payloads.
11531153 """
You can’t perform that action at this time.
0 commit comments