File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4165,9 +4165,9 @@ y = 0
41654165[file a.py.2]
41664166y = ''
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]
41734173import a
@@ -4183,9 +4183,9 @@ y = 0
41834183[file a.py.2]
41844184y = ''
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]
41914191import 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]
42034203import 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]
You can’t perform that action at this time.
0 commit comments