Skip to content

Commit bbc9851

Browse files
authored
Merge pull request #1942 from RasmusWL/python-modernise-consistent-tuple-size
Python: Modernise the `py/mixed-tuple-returns` query.
2 parents ae9f35b + 631603f commit bbc9851

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/ql/src/Functions/ReturnConsistentTupleSizes.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
import python
1414

1515
predicate returns_tuple_of_size(Function func, int size, AstNode origin) {
16-
exists(Return return, TupleObject val |
16+
exists(Return return, TupleValue val |
1717
return.getScope() = func and
18-
return.getValue().refersTo(val, origin) |
19-
size = val.getLength()
18+
return.getValue().pointsTo(val, origin) |
19+
size = val.length()
2020
)
2121
}
2222

0 commit comments

Comments
 (0)