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

Type 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