File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 88import os
99import sys
1010import threading
11+ from dataclasses import dataclass
1112from datetime import timezone
1213from types import TracebackType
1314from typing import (
@@ -720,20 +721,16 @@ def attempt_deadlock_interruption(self) -> None:
720721 )
721722
722723
724+ @dataclass (frozen = True )
723725class _CommandAwarePayloadCodec (temporalio .converter .PayloadCodec ):
724726 """A payload codec that sets serialization context for the associated command.
725727
726728 This codec responds to the :py:data:`temporalio.bridge._visitor.current_command_seq` context
727729 variable set by the payload visitor.
728730 """
729731
730- def __init__ (
731- self ,
732- instance : WorkflowInstance ,
733- context_free_payload_codec : temporalio .converter .PayloadCodec ,
734- ):
735- self .instance = instance
736- self .context_free_payload_codec = context_free_payload_codec
732+ instance : WorkflowInstance
733+ context_free_payload_codec : temporalio .converter .PayloadCodec
737734
738735 async def encode (
739736 self ,
You can’t perform that action at this time.
0 commit comments