mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
12 lines
347 B
Plaintext
12 lines
347 B
Plaintext
import python
|
|
private import semmle.python.objects.ObjectInternal
|
|
|
|
/** Make unknown type visible */
|
|
class UnknownType extends UnknownClassInternal {
|
|
override string toString() { result = "*UNKNOWN TYPE" }
|
|
}
|
|
|
|
from ClassObject cls
|
|
where cls.getPyClass().getEnclosingModule().getName() = "test"
|
|
select cls.toString(), cls.getMetaClass().toString()
|