Skip to content

Commit f3fe740

Browse files
committed
WIP: use JSONPlainPayloadConverter
1 parent 81697e1 commit f3fe740

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tests/test_serialization_context.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ class UserMethodCalledError(Exception):
17601760

17611761

17621762
class CustomEncodingPayloadConverter(
1763-
EncodingPayloadConverter, WithSerializationContext
1763+
JSONPlainPayloadConverter, WithSerializationContext
17641764
):
17651765
@property
17661766
def encoding(self) -> str:
@@ -1770,16 +1770,6 @@ def __init__(self):
17701770
super().__init__()
17711771
self.context: Optional[SerializationContext] = None
17721772

1773-
def to_payload(self, value: Any) -> temporalio.api.common.v1.Payload:
1774-
return super().to_payload(value)
1775-
1776-
def from_payload(
1777-
self,
1778-
payload: temporalio.api.common.v1.Payload,
1779-
type_hint: Optional[Type] = None,
1780-
) -> Any:
1781-
raise NotImplementedError
1782-
17831773
def with_context(
17841774
self, context: Optional[SerializationContext]
17851775
) -> CustomEncodingPayloadConverter:

0 commit comments

Comments
 (0)