Skip to content

Commit 977767b

Browse files
committed
Python: comment around dictionary comprehensions
1 parent 38b1eb7 commit 977767b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ predicate yieldStoreStep(Node nodeFrom, Content c, Node nodeTo) {
182182
exists(Yield yield |
183183
nodeTo.asCfgNode() = yield.getAFlowNode() and
184184
nodeFrom.asCfgNode() = yield.getValue().getAFlowNode() and
185+
// TODO: Consider if this will also need to transfer dictionary content
186+
// once dictionary comprehensions are supported.
185187
c instanceof ListElementContent
186188
)
187189
}

0 commit comments

Comments
 (0)