@@ -23,6 +23,12 @@ a.py:1: error: invalid syntax
2323==
2424main:2: error: Missing positional argument "x" in call to "f"
2525==
26+ [out version>=3.10]
27+ ==
28+ a.py:1: error: expected ':'
29+ ==
30+ main:2: error: Missing positional argument "x" in call to "f"
31+ ==
2632
2733[case testParseErrorShowSource]
2834# flags: --pretty --show-error-codes
@@ -46,6 +52,16 @@ main:3: error: Missing positional argument "x" in call to "f" [call-arg]
4652 a.f()
4753 ^
4854==
55+ [out version>=3.10]
56+ ==
57+ a.py:1: error: expected ':' [syntax]
58+ def f(x: int) ->
59+ ^
60+ ==
61+ main:3: error: Missing positional argument "x" in call to "f" [call-arg]
62+ a.f()
63+ ^
64+ ==
4965
5066[case testParseErrorMultipleTimes]
5167import a
@@ -66,6 +82,13 @@ a.py:1: error: invalid syntax
6682a.py:2: error: invalid syntax
6783==
6884main:2: error: Missing positional argument "x" in call to "f"
85+ [out version>=3.10]
86+ ==
87+ a.py:1: error: expected ':'
88+ ==
89+ a.py:2: error: expected ':'
90+ ==
91+ main:2: error: Missing positional argument "x" in call to "f"
6992
7093[case testSemanticAnalysisBlockingError]
7194import a
@@ -105,6 +128,14 @@ a.py:1: error: invalid syntax
105128==
106129main:3: error: Too many arguments for "f"
107130main:5: error: Too many arguments for "f"
131+ [out version>=3.10]
132+ main:3: error: Too many arguments for "f"
133+ main:5: error: Too many arguments for "f"
134+ ==
135+ a.py:1: error: expected ':'
136+ ==
137+ main:3: error: Too many arguments for "f"
138+ main:5: error: Too many arguments for "f"
108139
109140[case testUpdateClassReferenceAcrossBlockingError]
110141import a
@@ -125,6 +156,11 @@ class C:
125156a.py:1: error: invalid syntax
126157==
127158main:5: error: Missing positional argument "x" in call to "f" of "C"
159+ [out version>=3.10]
160+ ==
161+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
162+ ==
163+ main:5: error: Missing positional argument "x" in call to "f" of "C"
128164
129165[case testAddFileWithBlockingError]
130166import a
@@ -140,6 +176,13 @@ main:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missin
140176a.py:1: error: invalid syntax
141177==
142178main:2: error: Too many arguments for "f"
179+ [out version>=3.10]
180+ main:1: error: Cannot find implementation or library stub for module named "a"
181+ main:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
182+ ==
183+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
184+ ==
185+ main:2: error: Too many arguments for "f"
143186
144187[case testModifyTwoFilesOneWithBlockingError1]
145188import a
@@ -216,6 +259,13 @@ a.py:1: error: invalid syntax
216259a.py:1: error: invalid syntax
217260==
218261a.py:2: error: Missing positional argument "x" in call to "f"
262+ [out version>=3.10]
263+ ==
264+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
265+ ==
266+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
267+ ==
268+ a.py:2: error: Missing positional argument "x" in call to "f"
219269
220270[case testModifyTwoFilesIntroduceTwoBlockingErrors]
221271import a
@@ -280,6 +330,13 @@ a.py:1: error: invalid syntax
280330main:1: error: Cannot find implementation or library stub for module named "a"
281331main:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
282332b.py:1: error: Cannot find implementation or library stub for module named "a"
333+ [out version>=3.10]
334+ ==
335+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
336+ ==
337+ main:1: error: Cannot find implementation or library stub for module named "a"
338+ main:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
339+ b.py:1: error: Cannot find implementation or library stub for module named "a"
283340
284341[case testDeleteFileWithBlockingError-only_when_cache]
285342-- Different cache/no-cache tests because:
@@ -301,6 +358,13 @@ a.py:1: error: invalid syntax
301358b.py:1: error: Cannot find implementation or library stub for module named "a"
302359b.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
303360main:1: error: Cannot find implementation or library stub for module named "a"
361+ [out version>=3.10]
362+ ==
363+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
364+ ==
365+ b.py:1: error: Cannot find implementation or library stub for module named "a"
366+ b.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
367+ main:1: error: Cannot find implementation or library stub for module named "a"
304368
305369[case testModifyFileWhileBlockingErrorElsewhere]
306370import a
@@ -324,6 +388,14 @@ a.py:1: error: invalid syntax
324388==
325389b.py:2: error: Module has no attribute "f"
326390b.py:3: error: "int" not callable
391+ [out version>=3.10]
392+ ==
393+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
394+ ==
395+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
396+ ==
397+ b.py:2: error: Module has no attribute "f"
398+ b.py:3: error: "int" not callable
327399
328400[case testImportBringsAnotherFileWithBlockingError1]
329401import a
@@ -339,6 +411,11 @@ def f() -> None: pass
339411<ROOT>/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax
340412==
341413a.py:1: error: "int" not callable
414+ [out version>=3.10]
415+ ==
416+ <ROOT>/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax. Perhaps you forgot a comma?
417+ ==
418+ a.py:1: error: "int" not callable
342419
343420[case testImportBringsAnotherFileWithSemanticAnalysisBlockingError]
344421import a
@@ -413,6 +490,13 @@ a.py:1: error: invalid syntax
413490<ROOT>/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax
414491==
415492a.py:2: error: "int" not callable
493+ [out version>=3.10]
494+ ==
495+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
496+ ==
497+ <ROOT>/test-data/unit/lib-stub/blocker.pyi:2: error: invalid syntax. Perhaps you forgot a comma?
498+ ==
499+ a.py:2: error: "int" not callable
416500
417501[case testInitialBlocker]
418502# cmd: mypy a.py b.py
@@ -431,6 +515,11 @@ a.py:1: error: invalid syntax
431515==
432516b.py:2: error: Incompatible return value type (got "str", expected "int")
433517==
518+ [out version>=3.10]
519+ a.py:1: error: invalid syntax. Perhaps you forgot a comma?
520+ ==
521+ b.py:2: error: Incompatible return value type (got "str", expected "int")
522+ ==
434523
435524[case testDecodeErrorBlocker-posix]
436525import a
0 commit comments