Skip to content

Commit b46a361

Browse files
authored
Merge pull request github#5490 from RasmusWL/private-imports
Python: Make import private for better auto-complete
2 parents 921b560 + 1890e63 commit b46a361

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* directed and labeled; they specify how the components represented by nodes relate to each other.
77
*/
88

9-
import python
9+
private import python
1010
import semmle.python.dataflow.new.DataFlow
1111

1212
/**

python/ql/src/semmle/python/dataflow/new/internal/Attributes.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import DataFlowUtil
44
import DataFlowPublic
55
private import DataFlowPrivate
6+
private import semmle.python.types.Builtins
67

78
/**
89
* A data flow node that reads or writes an attribute of an object.
@@ -84,8 +85,6 @@ private class AttributeAssignmentAsAttrWrite extends AttrWrite, CfgNode {
8485
override string getAttributeName() { result = node.getName() }
8586
}
8687

87-
import semmle.python.types.Builtins
88-
8988
/** Represents `CallNode`s that may refer to calls to built-in functions or classes. */
9089
private class BuiltInCallNode extends CallNode {
9190
string name;

0 commit comments

Comments
 (0)