Files
codeql/python/ql/test/library-tests/PointsTo/metaclass/Mro.ql
2022-03-07 18:59:49 +00:00

13 lines
446 B
Plaintext

import python
private import semmle.python.objects.ObjectInternal
private import semmle.python.pointsto.PointsTo
/** An unknown type. Not usually visible. */
class UnknownType extends UnknownClassInternal {
override string toString() { result = "*UNKNOWN TYPE" }
}
from PythonClassObjectInternal cls
where cls.getScope().getEnclosingModule().getName() = "test" and not Types::failedInference(cls, _)
select cls.toString(), Types::getMro(cls)