Skip to content

Commit a5b11e8

Browse files
erik-kroghRasmusWL
andauthored
update doc to make it clear that moduleImport(..) does not refer to PyPI names
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent d5f0446 commit a5b11e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/lib/semmle/python/frameworks/data/ModelsAsData.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* - Use the `ModelInput` module to contribute new models.
66
* - Use the `ModelOutput` module to access the model results in terms of API nodes.
77
*
8-
* The package name refers to a Pip package name.
8+
* The package name refers to the top-level module the import comes from, and not a PyPI package.
9+
* So for `from foo.bar import baz`, the package will be `foo`.
910
*/
1011

1112
private import python

0 commit comments

Comments
 (0)