Skip to content

Commit b563362

Browse files
yoffRasmusWL
andauthored
Update python/ql/src/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
1 parent 384d021 commit b563362

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/src/semmle/python/dataflow/new/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,8 @@ module IterableUnpacking {
13231323
predicate iterableUnpackingForReadStep(CfgNode nodeFrom, Content c, Node nodeTo) {
13241324
exists(ForTarget target |
13251325
nodeFrom.asExpr() = target.getSource() and
1326-
nodeTo = TIterableSequenceNode(target.(SequenceNode))
1326+
target instanceof SequenceNode and
1327+
nodeTo = TIterableSequenceNode(target)
13271328
) and
13281329
(
13291330
c instanceof ListElementContent

0 commit comments

Comments
 (0)