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

Member predicate ImportExpr::topModuleName

Gets the name of topmost module or package being imported

string topModuleName()