We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cls.getMethod
getName
1 parent 93e3566 commit ac48ecaCopy full SHA for ac48eca
1 file changed
python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatch.qll
@@ -2145,8 +2145,7 @@ module DuckTyping {
2145
exists(Class cls |
2146
f.getScope() = cls and
2147
superclass = getADirectSuperclass+(cls) and
2148
- overridden = superclass.getAMethod() and
2149
- overridden.getName() = f.getName()
+ overridden = superclass.getMethod(f.getName())
2150
)
2151
}
2152
0 commit comments