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

Predicate common_module_name

Helper for missing modules to determine if name x.y is a module x.y or an attribute y of module x. This list should be added to as required.

Import path

import semmle.python.objects.TObject
predicate common_module_name(string name)