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

Predicate API::Impl::isImported

Holds if the module name is imported.

This is determined syntactically.

Import path

import semmle.python.ApiGraphs
predicate isImported(string name)