Skip to content

Commit 3a7f84e

Browse files
committed
Revert "Break feature"
This reverts commit f677ef0.
1 parent 59b66f3 commit 3a7f84e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

temporalio/converter.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,9 @@ def with_context(self, context: SerializationContext) -> Self:
433433
if not any_with_context:
434434
return self
435435

436-
new_instance = (
437-
CompositePayloadConverter()
438-
) # FIXME: deliberate temporary wrong class
436+
new_instance = type(self)()
439437
new_instance._set_converters(*converters)
440-
return new_instance # type: ignore
438+
return new_instance
441439

442440

443441
class DefaultPayloadConverter(CompositePayloadConverter):

0 commit comments

Comments
 (0)