Skip to content

Commit 3a8a912

Browse files
committed
Fixing indent issue with kwargs["extra"]
1 parent 49ca10e commit 3a8a912

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

temporalio/workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,9 +1175,9 @@ async def sleep(
11751175
This can be in single-line Temporal markdown format.
11761176
"""
11771177
await _Runtime.current().workflow_sleep(
1178-
duration=duration.total_seconds()
1179-
if isinstance(duration, timedelta)
1180-
else duration,
1178+
duration=(
1179+
duration.total_seconds() if isinstance(duration, timedelta) else duration
1180+
),
11811181
summary=summary,
11821182
)
11831183

@@ -1361,7 +1361,7 @@ def process(
13611361
if self.workflow_info_on_extra:
13621362
extra.setdefault("temporal_workflow", {}).update(update_details)
13631363

1364-
kwargs["extra"] = {**extra, **(kwargs.get("extra") or {})}
1364+
kwargs["extra"] = {**extra, **(kwargs.get("extra") or {})}
13651365
if msg_extra:
13661366
msg = f"{msg} ({msg_extra})"
13671367
return (msg, kwargs)

0 commit comments

Comments
 (0)