We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a9f86 commit 7cd9369Copy full SHA for 7cd9369
python/ql/lib/semmle/python/dataflow/new/internal/ImportStar.qll
@@ -21,7 +21,9 @@ module ImportStar {
21
/** Holds if `n` refers to a variable that is defined in the module in which it occurs. */
22
private predicate isDefinedLocally(NameNode n) {
23
// Defined in an enclosing scope
24
- exists(LocalVariable v | v.getId() = n.getId() and v.getScope() = n.getScope().getEnclosingScope*())
+ exists(LocalVariable v |
25
+ v.getId() = n.getId() and v.getScope() = n.getScope().getEnclosingScope*()
26
+ )
27
or
28
// Defined as a built-in
29
n.getId() = Builtins::getBuiltinName()
0 commit comments