@@ -38,7 +38,7 @@ def f(): # E: Type signature has too many arguments [syntax]
3838 # type: (int) -> None
3939 1
4040
41- x = 0 # type: x y # E: syntax error in type comment ' x y' [syntax]
41+ x = 0 # type: x y # E: syntax error in type comment " x y" [syntax]
4242
4343[case testErrorCodeSyntaxError3]
4444# This is a bit inconsistent -- syntax error would be more logical?
@@ -61,7 +61,7 @@ def f(): # E: Type signature has too many arguments [syntax]
6161 # type: (int) -> None
6262 1
6363
64- x = 0 # type: x y # E: syntax error in type comment ' x y' [syntax]
64+ x = 0 # type: x y # E: syntax error in type comment " x y" [syntax]
6565
6666[case testErrorCodeSyntaxError3_python2]
6767def f(): pass
@@ -460,7 +460,7 @@ c = {} # E: Expected TypedDict key 'x' but found no keys [typeddict-item]
460460[builtins fixtures/dict.pyi]
461461
462462[case testErrorCodeCannotDetermineType]
463- y = x # E: Cannot determine type of 'x' [has-type]
463+ y = x # E: Cannot determine type of "x" [has-type]
464464reveal_type(y) # N: Revealed type is "Any"
465465x = None
466466
@@ -700,8 +700,8 @@ main:2: error: Name "y" is not defined [name-defined]
700700x = y # type: int # type: ignored[foo]
701701x = y # type: int # type: ignored [foo]
702702[out]
703- main:1: error: syntax error in type comment ' int' [syntax]
704- main:2: error: syntax error in type comment ' int' [syntax]
703+ main:1: error: syntax error in type comment " int" [syntax]
704+ main:2: error: syntax error in type comment " int" [syntax]
705705
706706[case testErrorCode__exit__Return]
707707class InvalidReturn:
0 commit comments