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