Files
codeql/python/ql/test/library-tests/PointsTo/inheritance/Mro.ql
2018-11-19 15:15:54 +00:00

18 lines
330 B
Plaintext

import python
/** Make unknown type visible */
class UnknownType extends ClassObject {
UnknownType() { this = theUnknownType() }
override string toString() { result = "*UNKNOWN TYPE" }
override string getName() { result = "UNKNOWN" }
}
from ClassObject c
where not c.isBuiltin()
select c.toString(), c.getMro()