Skip to content

Commit bbeefd5

Browse files
committed
Python: Modernizes query
1 parent be09c17 commit bbeefd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/ql/src/Functions/SignatureOverriddenMethod.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
import python
1616
import Expressions.CallArgs
1717

18-
from FunctionObject base, PyFunctionObject derived
18+
from FunctionValue base, PythonFunctionValue derived
1919
where
2020
not exists(base.getACall()) and
21-
not exists(FunctionObject a_derived |
21+
not exists(FunctionValue a_derived |
2222
a_derived.overrides(base) and
2323
exists(a_derived.getACall())
2424
) and
25-
not derived.getFunction().isSpecialMethod() and
25+
not derived.getScope().isSpecialMethod() and
2626
derived.getName() != "__init__" and
2727
derived.isNormalMethod() and
28-
not derived.getFunction().isSpecialMethod() and
28+
not derived.getScope().isSpecialMethod() and
2929
// call to overrides distributed for efficiency
3030
(
3131
(derived.overrides(base) and derived.minParameters() > base.maxParameters())

0 commit comments

Comments
 (0)