Add 'Constant' to allowed node types. Resolves https://github.com/galaxyproject/galaxy/issues/10688

This commit is contained in:
Nolan Woods
2020-11-12 11:00:58 -08:00
parent 6d9b7c93be
commit ce8b463b15
@@ -8,7 +8,7 @@ AST_NODE_TYPE_ALLOWLIST = [
'Expr', 'Load', 'Str', 'Num', 'BoolOp', 'Compare', 'And', 'Eq', 'NotEq',
'Or', 'GtE', 'LtE', 'Lt', 'Gt', 'BinOp', 'Add', 'Div', 'Sub', 'Mult', 'Mod',
'Pow', 'LShift', 'GShift', 'BitAnd', 'BitOr', 'BitXor', 'UnaryOp', 'Invert',
'Not', 'NotIn', 'In', 'Is', 'IsNot', 'List', 'Index', 'Subscript',
'Not', 'NotIn', 'In', 'Is', 'IsNot', 'List', 'Index', 'Subscript', 'Constant',
# Further checks
'Name', 'Call', 'Attribute',
]