CodeQL library for Python
codeql/python-all 2.0.1-dev (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()