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

Predicate getADirectSuperclass

Gets a direct superclass of the argument cls, if any.

For A with the class definition class A(B, C) it will have results B and C.

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch
Class getADirectSuperclass ( Class cls )