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 e64c15e commit f8c5edeCopy full SHA for f8c5ede
temporalio/converter.py
@@ -425,14 +425,14 @@ def from_payloads(
425
def with_context(self, context: SerializationContext) -> Self:
426
"""Return a new instance with context set on the component converters.
427
428
- If none of the component converters support with_context, return self.
+ If none of the component converters returned new instances, return self.
429
"""
430
converters: list[EncodingPayloadConverter] = []
431
any_with_context = False
432
for c in self.converters.values():
433
if isinstance(c, WithSerializationContext):
434
converters.append(c.with_context(context))
435
- any_with_context = True
+ any_with_context = converters[-1] != c
436
else:
437
converters.append(c)
438
0 commit comments