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

Predicate class_declares_attribute

Holds if this class (not on a super-class) declares name

Import path

import python
predicate class_declares_attribute(ClassObject cls, string name)