Merge pull request #3246 from BekaValentine/python-objectapi-to-valueapi-uselessclass

Python: ObjectAPI to ValueAPI: UselessClass
This commit is contained in:
Rasmus Wriedt Larsen
2020-04-15 16:45:02 +02:00
committed by GitHub

View File

@@ -22,9 +22,9 @@ predicate does_not_define_special_method(Class cls) {
}
predicate no_inheritance(Class c) {
not exists(ClassObject cls, ClassObject other |
cls.getPyClass() = c and
other != theObjectType()
not exists(ClassValue cls, ClassValue other |
cls.getScope() = c and
other != ClassValue::object()
|
other.getABaseType() = cls or
cls.getABaseType() = other