Python: use imprecise content in cp

We had accidentally used precise content leadingto blowup
This commit is contained in:
Rasmus Lerchedahl Petersen
2024-10-01 13:53:25 +02:00
parent 64890a1a6b
commit f39dc41903

View File

@@ -195,7 +195,7 @@ predicate yieldStoreStep(Node nodeFrom, Content c, Node nodeTo) {
c instanceof SetElementContent
or
comp instanceof DictComp and
c instanceof DictionaryElementContent
c instanceof DictionaryElementAnyContent
)
or
not exists(Comp comp | func = comp.getFunction()) and
@@ -204,7 +204,7 @@ predicate yieldStoreStep(Node nodeFrom, Content c, Node nodeTo) {
or
c instanceof SetElementContent
or
c instanceof DictionaryElementContent
c instanceof DictionaryElementAnyContent
)
)
}