We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8a912 commit 3c92a2eCopy full SHA for 3c92a2e
temporalio/workflow.py
@@ -1175,9 +1175,9 @@ async def sleep(
1175
This can be in single-line Temporal markdown format.
1176
"""
1177
await _Runtime.current().workflow_sleep(
1178
- duration=(
1179
- duration.total_seconds() if isinstance(duration, timedelta) else duration
1180
- ),
+ duration=duration.total_seconds()
+ if isinstance(duration, timedelta)
+ else duration,
1181
summary=summary,
1182
)
1183
0 commit comments