You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pdl/pdl.py
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,9 @@ class InterpreterConfig(TypedDict, total=False):
47
47
"""
48
48
cwd: Path
49
49
"""Path considered as the current working directory for file reading."""
50
+
replay: dict[str, Any]
51
+
"""Execute the program reusing some already computed values.
52
+
"""
50
53
51
54
52
55
defexec_program(
@@ -66,9 +69,10 @@ def exec_program(
66
69
output: Configure the output of the returned value of this function. Defaults to `"result"`
67
70
68
71
Returns:
69
-
Return the final result if `output` is set to `"result"`. If set of `all`, it returns a dictionary containing, `result`, `scope`, and `trace`.
72
+
Return the final result if `output` is set to `"result"`. If set of `all`, it returns a dictionary containing, `result`, `scope`, `trace`, and `replay`.
f"Actual result (copy everything below this line):\n✂️ ------------------------------------------------------------\n{actual}\n-------------------------------------------------------------"
348
370
)
349
371
372
+
# Print the actual results for wrong replay results
0 commit comments