Skip to content

Commit 2e6f35b

Browse files
Remove case excluding classes with a __new__ method; as it doesn't make much sense (__init__ is still called anyway)
1 parent 73057d3 commit 2e6f35b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

python/ql/src/Classes/CallsToInitDel/MissingCallToInit.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import MethodCallOrder
1616

1717
from Class base, Function shouldCall, FunctionOption possibleIssue, string msg
1818
where
19-
not exists(Function newMethod | newMethod = base.getAMethod() and newMethod.getName() = "__new__") and
2019
exists(FunctionOption possiblyMissingSuper |
2120
missingCallToSuperclassMethodRestricted(base, shouldCall, "__init__") and
2221
possiblyMissingSuper = getPossibleMissingSuperOption(base, shouldCall, "__init__") and

0 commit comments

Comments
 (0)