From 6d83162e262d8cd036ff6d80ee04d2fd2292eb86 Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Wed, 22 May 2024 15:25:36 -0400 Subject: [PATCH] Remove extra param `type_ignores` from `ast.Interactive` call Added in https://github.com/posit-dev/py-shiny/pull/767/files#diff-8c4d6194dce915462e220ab012cb9a00199777d2176077a7b5669215009a0e67R142 Not found in type definition: https://docs.python.org/3/library/ast.html#ast.Interactive > `class ast.Interactive(body)` But is found in `ast.Module` > `class ast.Module(body, type_ignores)` --- shiny/express/_run.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shiny/express/_run.py b/shiny/express/_run.py index f351533a3..dbbd090f2 100644 --- a/shiny/express/_run.py +++ b/shiny/express/_run.py @@ -130,9 +130,7 @@ def set_result(x: object): ) else: exec( - compile( - ast.Interactive([node], type_ignores=[]), file_path, "single" - ), + compile(ast.Interactive([node]), file_path, "single"), var_context, var_context, )