Files
codeql/python/ql/test/3/library-tests/classes/mro/mro_index.ql
2025-11-26 12:30:31 +00:00

15 lines
267 B
Plaintext

/**
* @name class_attr
* @kind test
* @problem.severity warning
*/
import python
private import LegacyPointsTo
from ClassObject cls, ClassObject sup, int index
where
sup = cls.getMroItem(index) and
not cls.isC()
select cls.toString(), index, sup.toString()