qtil
advanced-security/qtil-python 0.0.3
Search

Predicate isClassmethod

Holds if the function func is a classmethod – either by having a @classmethod decorator or by convention (like a __new__ method on a class is a classmethod even without the decorator).

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch
predicate isClassmethod(Function func)