@@ -1643,56 +1643,56 @@ a2.foo2()
16431643[case testUnificationEmptyListLeft]
16441644def f(): pass
16451645a = [] if f() else [0]
1646- a.append(0)
1646+ a() # E: List[int] not callable
16471647[builtins fixtures/list.py]
16481648
16491649[case testUnificationEmptyListRight]
16501650def f(): pass
16511651a = [0] if f() else []
1652- a.append(0)
1652+ a() # E: List[int] not callable
16531653[builtins fixtures/list.py]
16541654
16551655[case testUnificationEmptyListLeftInContext]
16561656from typing import List
16571657def f(): pass
16581658a = [] if f() else [0] # type: List[int]
1659- a.append(0)
1659+ a() # E: List[int] not callable
16601660[builtins fixtures/list.py]
16611661
16621662[case testUnificationEmptyListRightInContext]
16631663# TODO Find an example that really needs the context
16641664from typing import List
16651665def f(): pass
16661666a = [0] if f() else [] # type: List[int]
1667- a.append(0)
1667+ a() # E: List[int] not callable
16681668[builtins fixtures/list.py]
16691669
16701670[case testUnificationEmptySetLeft]
16711671def f(): pass
16721672a = set() if f() else {0}
1673- a.add(0)
1673+ a() # E: Set[int] not callable
16741674[builtins fixtures/set.py]
16751675
16761676[case testUnificationEmptyDictLeft]
16771677def f(): pass
16781678a = {} if f() else {0: 0}
1679- a.update({0: 0})
1679+ a() # E: Dict[int, int] not callable
16801680[builtins fixtures/dict.py]
16811681
16821682[case testUnificationEmptyDictRight]
16831683def f(): pass
16841684a = {0: 0} if f() else {}
1685- a.update({0: 0})
1685+ a() # E: Dict[int, int] not callable
16861686[builtins fixtures/dict.py]
16871687
16881688[case testUnificationDictWithEmptyListLeft]
16891689def f(): pass
16901690a = {0: []} if f() else {0: [0]}
1691- a.update({0: [0]})
1691+ a() # E: Dict[int, List[int]] not callable
16921692[builtins fixtures/dict.py]
16931693
16941694[case testUnificationDictWithEmptyListRight]
16951695def f(): pass
16961696a = {0: [0]} if f() else {0: []}
1697- a.update({0: [0]})
1697+ a() # E: Dict[int, List[int]] not callable
16981698[builtins fixtures/dict.py]
0 commit comments