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

Predicate isStaticmethod

Holds if the function func is a staticmethod – either by having a @staticmethod 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 isStaticmethod ( Function func )