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

Injector CallTypeMethodAsPlainFunction

A call to method on a class, not going through an instance method, such as

class Foo:
    def method(self, arg):
        pass

foo = Foo()
Foo.method(foo, 42)

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch
CallTypeMethodAsPlainFunction CallTypeMethodAsPlainFunction()