Skip to content

Commit 6c91b91

Browse files
committed
Fix fine grained tests
Fix error messages in fine grained tests
1 parent 3d1323e commit 6c91b91

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test-data/unit/fine-grained.test

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4165,9 +4165,9 @@ y = 0
41654165
[file a.py.2]
41664166
y = ''
41674167
[out]
4168-
main:4: error: Need type annotation for "x"
4168+
main:4: error: Need type annotation for "x" (hint: "x: Optional[<type>] = ...")
41694169
==
4170-
main:4: error: Need type annotation for "x"
4170+
main:4: error: Need type annotation for "x" (hint: "x: Optional[<type>] = ...")
41714171

41724172
[case testNonePartialType2]
41734173
import a
@@ -4183,9 +4183,9 @@ y = 0
41834183
[file a.py.2]
41844184
y = ''
41854185
[out]
4186-
main:4: error: Need type annotation for "x"
4186+
main:4: error: Need type annotation for "x" (hint: "x: Optional[<type>] = ...")
41874187
==
4188-
main:4: error: Need type annotation for "x"
4188+
main:4: error: Need type annotation for "x" (hint: "x: Optional[<type>] = ...")
41894189

41904190
[case testNonePartialType3]
41914191
import a
@@ -4197,7 +4197,7 @@ def f() -> None:
41974197
y = ''
41984198
[out]
41994199
==
4200-
a.py:1: error: Need type annotation for "y"
4200+
a.py:1: error: Need type annotation for "y" (hint: "y: Optional[<type>] = ...")
42014201

42024202
[case testNonePartialType4]
42034203
import a
@@ -4213,7 +4213,7 @@ def f() -> None:
42134213
global y
42144214
y = ''
42154215
[out]
4216-
a.py:1: error: Need type annotation for "y"
4216+
a.py:1: error: Need type annotation for "y" (hint: "y: Optional[<type>] = ...")
42174217
==
42184218

42194219
[case testSkippedClass1]

0 commit comments

Comments
 (0)