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 b7a4eae commit 8af8d14Copy full SHA for 8af8d14
mypy/test/data/check-inference.test
@@ -1045,6 +1045,15 @@ a()
1045
[builtins fixtures/list.py]
1046
[out]
1047
1048
+[case testInferListInitializedToEmptyAndMultipleAssignment]
1049
+a, b = [], []
1050
+a.append(1)
1051
+b.append('')
1052
+a() # E: List[int] not callable
1053
+b() # E: List[str] not callable
1054
+[builtins fixtures/list.py]
1055
+[out]
1056
+
1057
[case testInferListInitializedToEmptyInFunction]
1058
def f() -> None:
1059
a = []
0 commit comments