CodeQL library for Python
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)