mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Merge pull request #3218 from RasmusWL/python-add-missing-override
Python: Add missing override to ClassValue.hasAttribute
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user