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

Predicate findFunctionAccordingToMroKnownStartingClass

Gets a potential definition of the function name according to our approximation of MRO for the class cls (see getNextClassInMroKnownStartingClass for more information).

Note: this is almost the same as findFunctionAccordingToMro, except we know the startingClass, which can give slightly more precise results.

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch
Function findFunctionAccordingToMroKnownStartingClass(Class startingClass, string name)