void () { doTest("list", """ expr = [] def fun(): global expr expr"""); doTest("list", """ expr = [] def fun(): def nuf(): global expr expr"""); doTest("list", """ expr = [] def fun(): expr = True \s def nuf(): global expr expr"""); doTest("Union[bool, int]", """ if True: a = True else: a = 5 def fun(): def nuf(): global a expr = a"""); }