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

Member predicate ModuleObject::importedAs

Whether this module is imported by ‘import name’. For example on a linux system, the module ‘posixpath’ is imported as ‘os.path’ or as ‘posixpath’

predicate importedAs(string name)