mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user