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