File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 11import io
22from contextlib import redirect_stdout
3- import traceback
3+
44from pdl .pdl import exec_dict
55
66
@@ -13,14 +13,17 @@ def repeat_retry_data(n: int):
1313 {
1414 "lang" : "python" ,
1515 "code" : {
16- "text" : ["raise ValueError('dummy exception')\n " , "result = 'World'" ]
16+ "text" : [
17+ "raise ValueError('dummy exception')\n " ,
18+ "result = 'World'" ,
19+ ]
1720 },
1821 },
1922 "!\n " ,
2023 ],
21- "retry" : n
24+ "retry" : n ,
2225 },
23- "max_iterations" : 2
26+ "max_iterations" : 2 ,
2427 }
2528
2629
@@ -67,11 +70,14 @@ def code_retry_data(n: int):
6770 {
6871 "lang" : "python" ,
6972 "code" : {
70- "text" : ["raise ValueError('dummy exception')\n " , "result = 'hello, world!'" ]
73+ "text" : [
74+ "raise ValueError('dummy exception')\n " ,
75+ "result = 'hello, world!'" ,
76+ ]
7177 },
7278 },
7379 ],
74- "retry" : n
80+ "retry" : n ,
7581 }
7682
7783
You can’t perform that action at this time.
0 commit comments