Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3d9350 commit 32dabceCopy full SHA for 32dabce
1 file changed
python/ql/src/semmle/python/types/Object.qll
@@ -10,6 +10,13 @@ private cached predicate is_an_object(@py_object obj) {
10
exists(@py_cobject mod_type | py_special_objects(mod_type, "ModuleType") and py_cobjecttypes(obj, mod_type)) and
11
exists(Module m | py_cobjectnames(obj, m.getName()))
12
)
13
+ and (
14
+ /* Exclude unmatched builtin objects in the library trap files */
15
+ obj instanceof ControlFlowNode or
16
+ py_cobjectnames(obj, _) or
17
+ py_cobjecttypes(obj, _) or
18
+ py_special_objects(obj, _)
19
+ )
20
}
21
22
/** Instances of this class represent objects in the Python program. However, since
0 commit comments