CodeQL library for Python
codeql/python-all 0.12.0 (changelog, source)
Search

Member predicate ImportExpr::getAnImportedModuleName

Gets the names of the modules that may be imported by this import. For example this predicate would return ‘x’ and ‘x.y’ for import x.y

string getAnImportedModuleName()