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)