Skip to content

Commit 0ecc96f

Browse files
committed
Formatting
1 parent 9011d9c commit 0ecc96f

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

temporalio/client.py

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2943,27 +2943,37 @@ def _from_raw_info(
29432943
**additional_fields: Any,
29442944
) -> WorkflowExecution:
29452945
return cls(
2946-
close_time=info.close_time.ToDatetime().replace(tzinfo=timezone.utc)
2947-
if info.HasField("close_time")
2948-
else None,
2946+
close_time=(
2947+
info.close_time.ToDatetime().replace(tzinfo=timezone.utc)
2948+
if info.HasField("close_time")
2949+
else None
2950+
),
29492951
data_converter=converter,
2950-
execution_time=info.execution_time.ToDatetime().replace(tzinfo=timezone.utc)
2951-
if info.HasField("execution_time")
2952-
else None,
2952+
execution_time=(
2953+
info.execution_time.ToDatetime().replace(tzinfo=timezone.utc)
2954+
if info.HasField("execution_time")
2955+
else None
2956+
),
29532957
history_length=info.history_length,
29542958
id=info.execution.workflow_id,
2955-
parent_id=info.parent_execution.workflow_id
2956-
if info.HasField("parent_execution")
2957-
else None,
2958-
parent_run_id=info.parent_execution.run_id
2959-
if info.HasField("parent_execution")
2960-
else None,
2961-
root_id=info.root_execution.workflow_id
2962-
if info.HasField("root_execution")
2963-
else None,
2964-
root_run_id=info.root_execution.run_id
2965-
if info.HasField("root_execution")
2966-
else None,
2959+
parent_id=(
2960+
info.parent_execution.workflow_id
2961+
if info.HasField("parent_execution")
2962+
else None
2963+
),
2964+
parent_run_id=(
2965+
info.parent_execution.run_id
2966+
if info.HasField("parent_execution")
2967+
else None
2968+
),
2969+
root_id=(
2970+
info.root_execution.workflow_id
2971+
if info.HasField("root_execution")
2972+
else None
2973+
),
2974+
root_run_id=(
2975+
info.root_execution.run_id if info.HasField("root_execution") else None
2976+
),
29672977
raw_info=info,
29682978
run_id=info.execution.run_id,
29692979
search_attributes=temporalio.converter.decode_search_attributes(

0 commit comments

Comments
 (0)