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

Predicate MethodCalls::fromSuperNewCall

Like fromSuper, but only for __new__, and without requirement for being able to resolve the call to a known target (since the only super class might be the builtin object, so we never have the implementation of __new__ in the DB).

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch
predicate fromSuperNewCall(CallNode call, Class classUsedInSuper, AttrRead attr, Node self)