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

Predicate clsArgumentTracker

Gets a reference to the enclosing class classWithMethod from within one of its methods, either through the cls argument from a classmethod or from type(self) from a normal method.

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch
Node clsArgumentTracker(Class classWithMethod)