Python: Support iterable unpacking in type-tracking

This commit is contained in:
Rasmus Wriedt Larsen
2024-02-23 15:27:10 +01:00
parent 0cf3fe4a4c
commit 92729dbbd6
3 changed files with 5 additions and 6 deletions

View File

@@ -15,7 +15,6 @@ pointsTo_found_typeTracker_notFound
| code/func_defined_outside_class.py:39:11:39:21 | ControlFlowNode for _gen() | B._gen |
| code/func_defined_outside_class.py:42:1:42:7 | ControlFlowNode for Attribute() | B._gen.func |
| code/func_defined_outside_class.py:43:1:43:7 | ControlFlowNode for Attribute() | B._gen.func |
| code/func_ref_in_content.py:20:1:20:4 | ControlFlowNode for f2() | func |
| code/funky_regression.py:15:9:15:17 | ControlFlowNode for Attribute() | Wat.f2 |
| code/type_tracking_limitation.py:8:1:8:3 | ControlFlowNode for x() | my_func |
typeTracker_found_pointsTo_notFound

View File

@@ -17,7 +17,7 @@ def return_func_in_tuple():
tup = return_func_in_tuple() # $ pt,tt=return_func_in_tuple
f2, _ = tup
f2() # $ pt=func MISSING: tt
f2() # $ pt,tt=func
f3 = tup[0]
f3() # $ tt,pt=func