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
{{ message }}
Repository navigation
Commit 0fd95cb
Browse filesBrowse the repository at this point in the historyBrowse files
"code": "# test case of Python 3 function annotations inspired by David G. Kay\ndef remove_by_name(L: 'list of Restaurant', name: str) -> 'list of Restaurant':\n \"\"\" Given name, remove all Restaurants with that name from collection.\n \"\"\"\n result = []\n for r in L:\n if r.name != name:\n result.append(r)\n return result\n",
3
+
"trace": [
4
+
{
5
+
"exception_msg": "SyntaxError: invalid syntax (<string>, line 2)",
"code": "# test case of Python 3 function annotations inspired by David G. Kay\ndef remove_by_name(L: 'list of Restaurant', name: str) -> 'list of Restaurant':\n \"\"\" Given name, remove all Restaurants with that name from collection.\n \"\"\"\n result = []\n for r in L:\n if r.name != name:\n result.append(r)\n return result\n",
3
+
"trace": [
4
+
{
5
+
"ordered_globals": [],
6
+
"stdout": "",
7
+
"func_name": "<module>",
8
+
"stack_to_render": [],
9
+
"globals": {},
10
+
"heap": {},
11
+
"line": 2,
12
+
"event": "step_line"
13
+
},
14
+
{
15
+
"exception_msg": "ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them",
0 commit comments