filtering.py check_expression adding 'Constant'

This commit is contained in:
Alexandru Mahmoud
2020-09-23 16:57:26 -04:00
committed by almahmoud
parent 213b613699
commit 7944706467
+1 -1
View File
@@ -12,7 +12,7 @@ AST_NODE_TYPE_WHITELIST = [
'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',
]