Skip to content

Commit a92d926

Browse files
authored
Merge pull request github#3218 from RasmusWL/python-add-missing-override
Python: Add missing override to ClassValue.hasAttribute
2 parents 922e52f + 7af5f03 commit a92d926

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/ql/src/semmle/python/objects/ObjectAPI.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,10 @@ class ClassValue extends Value {
540540
Value declaredAttribute(string name) { Types::declaredAttribute(this, name, result, _) }
541541

542542
/**
543-
* Holds if this class has the attribute `name`, including
544-
* attributes declared by super classes.
543+
* Holds if this class has the attribute `name`, including attributes
544+
* declared by super classes.
545545
*/
546-
predicate hasAttribute(string name) { this.getMro().declares(name) }
546+
override predicate hasAttribute(string name) { this.getMro().declares(name) }
547547

548548
/**
549549
* Holds if this class declares the attribute `name`,

0 commit comments

Comments
 (0)