CodeQL library for Python
codeql/python-all 2.1.3-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)