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

Member predicate ImportExpr::topModuleName

Gets the name of topmost module or package being imported

string topModuleName()