We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e728cc commit 2448f7fCopy full SHA for 2448f7f
temporalio/converter.py
@@ -421,14 +421,14 @@ def from_payloads(
421
def with_context(self, context: SerializationContext) -> Self:
422
"""Return a new instance with context set on the component converters.
423
424
- If none of the component converters support with_context, return self.
+ If none of the component converters returned new instances, return self.
425
"""
426
converters: list[EncodingPayloadConverter] = []
427
any_with_context = False
428
for c in self.converters.values():
429
if isinstance(c, WithSerializationContext):
430
converters.append(c.with_context(context))
431
- any_with_context = True
+ any_with_context = converters[-1] != c
432
else:
433
converters.append(c)
434
0 commit comments