Merge pull request #3218 from RasmusWL/python-add-missing-override

Python: Add missing override to ClassValue.hasAttribute
This commit is contained in:
Taus
2020-04-16 14:06:23 +02:00
committed by GitHub

View File

@@ -540,10 +540,10 @@ class ClassValue extends Value {
Value declaredAttribute(string name) { Types::declaredAttribute(this, name, result, _) }
/**
* Holds if this class has the attribute `name`, including
* attributes declared by super classes.
* Holds if this class has the attribute `name`, including attributes
* declared by super classes.
*/
predicate hasAttribute(string name) { this.getMro().declares(name) }
override predicate hasAttribute(string name) { this.getMro().declares(name) }
/**
* Holds if this class declares the attribute `name`,