Python: More precise dataflow for tuples

(and dictionaries, but that is not fleshed out)
This commit is contained in:
Rasmus Lerchedahl Petersen
2020-08-05 19:22:54 +02:00
parent 2639e68a0d
commit 7c235597de
4 changed files with 139 additions and 59 deletions

View File

@@ -28,7 +28,7 @@ def test_tuple_with_local_flow():
def test_tuple_negative():
x = (NONSOURCE, SOURCE)
y = x[0]
SINK_F(y) # False positive
SINK_F(y)
# 6.2.1. Identifiers (Names)
def test_names():