We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f18a15 commit 8e91f10Copy full SHA for 8e91f10
python/ql/src/Classes/UselessClass.ql
@@ -22,9 +22,9 @@ predicate does_not_define_special_method(Class cls) {
22
}
23
24
predicate no_inheritance(Class c) {
25
- not exists(ClassObject cls, ClassObject other |
26
- cls.getPyClass() = c and
27
- other != theObjectType()
+ not exists(ClassValue cls, ClassValue other |
+ cls.getScope() = c and
+ other != ClassValue::object()
28
|
29
other.getABaseType() = cls or
30
cls.getABaseType() = other
0 commit comments