Skip to content

Commit 981c5de

Browse files
authored
Merge pull request github#5639 from tausbn/python-api-graphs-missing-builtins
Python: Add missing builtins to `API::builtin`
2 parents f341d50 + affdedd commit 981c5de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ module API {
363363
n.isGlobal() and
364364
n.isLoad() and
365365
name = n.getId() and
366-
name = any(Builtins::Builtin b).getName()
366+
name in [any(Builtins::Builtin b).getName(), "None", "True", "False"]
367367
)
368368
}
369369

0 commit comments

Comments
 (0)