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

Predicate selfTracker

Gets a reference to the self argument of a method on class classWithMethod. The method cannot be a staticmethod or classmethod.

Import path

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