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

Predicate getKindForModule

Gets the kind for module m will be one of “module”, “script” or “plugin”

Import path

import semmle.python.types.ModuleKind
string getKindForModule(ModuleObject m)