66 * @problem.severity warning
77 * @tags reliability
88 * correctness
9- * @problem.severity warning
109 * @sub-severity high
1110 * @precision very-high
1211 * @id py/inheritance/signature-mismatch
@@ -19,17 +18,18 @@ from FunctionValue base, PythonFunctionValue derived
1918where
2019 not exists ( base .getACall ( ) ) and
2120 not exists ( FunctionValue a_derived |
22- a_derived .overrides ( base ) and
23- exists ( a_derived .getACall ( ) )
21+ a_derived .overrides ( base ) and
22+ exists ( a_derived .getACall ( ) )
2423 ) and
2524 not derived .getScope ( ) .isSpecialMethod ( ) and
2625 derived .getName ( ) != "__init__" and
2726 derived .isNormalMethod ( ) and
2827 not derived .getScope ( ) .isSpecialMethod ( ) and
2928 // call to overrides distributed for efficiency
3029 (
31- ( derived .overrides ( base ) and derived .minParameters ( ) > base .maxParameters ( ) )
30+ derived .overrides ( base ) and derived .minParameters ( ) > base .maxParameters ( )
3231 or
33- ( derived .overrides ( base ) and derived .maxParameters ( ) < base .minParameters ( ) )
32+ derived .overrides ( base ) and derived .maxParameters ( ) < base .minParameters ( )
3433 )
35- select derived , "Overriding method '" + derived .getName ( ) + "' has signature mismatch with $@." , base , "overridden method"
34+ select derived , "Overriding method '" + derived .getName ( ) + "' has signature mismatch with $@." ,
35+ base , "overridden method"
0 commit comments