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