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.
moduleImport
1 parent 05f290f commit 56515c5Copy full SHA for 56515c5
1 file changed
python/ql/src/semmle/python/ApiGraphs.qll
@@ -196,7 +196,13 @@ module API {
196
/** Gets the root node. */
197
Root root() { any() }
198
199
- /** Gets a node corresponding to an import of module `m`. */
+ /**
200
+ * Gets a node corresponding to an import of module `m`.
201
+ *
202
+ * Note: You should only use this predicate for top level modules. If you want nodes corresponding to a submodule,
203
+ * you should use `.getMember` on the parent module. For example, for nodes corresponding to the module `foo.bar`,
204
+ * use `moduleImport("foo").getMember("bar")`.
205
+ */
206
Node moduleImport(string m) { result = Impl::MkModuleImport(m) }
207
208
/**
0 commit comments