mirror of
https://github.com/github/codeql.git
synced 2026-03-31 12:48:17 +02:00
Python: Use cls.getMethod instead of getName
This commit is contained in:
@@ -2145,8 +2145,7 @@ module DuckTyping {
|
||||
exists(Class cls |
|
||||
f.getScope() = cls and
|
||||
superclass = getADirectSuperclass+(cls) and
|
||||
overridden = superclass.getAMethod() and
|
||||
overridden.getName() = f.getName()
|
||||
overridden = superclass.getMethod(f.getName())
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user