We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60b0f25 commit 211a1e1Copy full SHA for 211a1e1
python/ql/lib/semmle/python/dataflow/new/internal/TypeTracker.qll
@@ -613,8 +613,17 @@ class TypeBackTracker extends TTypeBackTracker {
613
* also flow to `sink`.
614
*/
615
TypeTracker getACompatibleTypeTracker() {
616
- exists(boolean hasCall | result = MkTypeTracker(hasCall, content) |
617
- hasCall = false or this.hasReturn() = false
+ exists(boolean hasCall, OptionalTypeTrackerContent c |
+ result = MkTypeTracker(hasCall, c) and
618
+ (
619
+ compatibleContents(c, content)
620
+ or
621
+ content = noContent() and c = content
622
+ )
623
+ |
624
+ hasCall = false
625
626
+ this.hasReturn() = false
627
)
628
}
629
0 commit comments