CodeQL library for Python
codeql/python-all 0.11.13 (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)