Skip to content

Commit c0faa1e

Browse files
committed
Docstring
1 parent 0fd5c7e commit c0faa1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

temporalio/workflow.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,11 @@ def memo() -> Mapping[str, Any]:
985985

986986

987987
def is_workflow_failure_exception(err: BaseException) -> bool:
988+
"""Checks if the given exception is a workflow failure in the current workflow.
989+
990+
Returns:
991+
True if the given exception is a workflow failure in the current workflow.
992+
"""
988993
return _Runtime.current().is_workflow_failure_exception(err)
989994

990995

0 commit comments

Comments
 (0)