diff --git a/python/lang/correctness/baseclass-attribute-override.yaml b/python/lang/correctness/baseclass-attribute-override.yaml index 7f7749db7c..8bbeda2671 100644 --- a/python/lang/correctness/baseclass-attribute-override.yaml +++ b/python/lang/correctness/baseclass-attribute-override.yaml @@ -9,17 +9,19 @@ rules: - pattern-inside: | class $A(...): ... - def $F(...): + def $F1(...): ... ... ... - pattern-inside: | class $B(...): ... - def $F(...): + def $F2(...): ... ... ... + - metavariable-comparison: + comparison: str($F1) == str($F2) - pattern: | class $C(..., $A, ..., $B, ...): ...