Remove case excluding classes with a __new__ method; as it doesn't make much sense (__init__ is still called anyway)

This commit is contained in:
Joe Farebrother
2025-07-03 16:07:17 +01:00
parent 9619ae8a2d
commit 18b949c0a9

View File

@@ -16,7 +16,6 @@ import MethodCallOrder
from Class base, Function shouldCall, FunctionOption possibleIssue, string msg
where
not exists(Function newMethod | newMethod = base.getAMethod() and newMethod.getName() = "__new__") and
exists(FunctionOption possiblyMissingSuper |
missingCallToSuperclassMethodRestricted(base, shouldCall, "__init__") and
possiblyMissingSuper = getPossibleMissingSuperOption(base, shouldCall, "__init__") and