Files
codeql/python/ql/test/library-tests/PointsTo/api/ClassValue.ql
2025-11-26 12:30:31 +00:00

16 lines
433 B
Plaintext

import python
private import LegacyPointsTo
from ClassValue cls, string description
where
cls = ClassValue::bool() and description = "bool"
or
cls = ClassValue::int_() and description = "int"
or
cls = ClassValue::float_() and description = "float"
or
cls = ClassValue::classmethod() and description = "classmethod"
or
cls = ClassValue::bool().getMro().getItem(2) and description = "object"
select cls, description