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
4165
4165
[file a.py.2]
4166
4166
y = ''
4167
4167
[out]
4168
- main:4: error: Need type annotation for "x"
4168
+ main:4: error: Need type annotation for "x" (hint: "x: Optional[<type>] = ...")
4169
4169
==
4170
- main:4: error: Need type annotation for "x"
4170
+ main:4: error: Need type annotation for "x" (hint: "x: Optional[<type>] = ...")
4171
4171
4172
4172
[case testNonePartialType2]
4173
4173
import a
@@ -4183,9 +4183,9 @@ y = 0
4183
4183
[file a.py.2]
4184
4184
y = ''
4185
4185
[out]
4186
- main:4: error: Need type annotation for "x"
4186
+ main:4: error: Need type annotation for "x" (hint: "x: Optional[<type>] = ...")
4187
4187
==
4188
- main:4: error: Need type annotation for "x"
4188
+ main:4: error: Need type annotation for "x" (hint: "x: Optional[<type>] = ...")
4189
4189
4190
4190
[case testNonePartialType3]
4191
4191
import a
@@ -4197,7 +4197,7 @@ def f() -> None:
4197
4197
y = ''
4198
4198
[out]
4199
4199
==
4200
- a.py:1: error: Need type annotation for "y"
4200
+ a.py:1: error: Need type annotation for "y" (hint: "y: Optional[<type>] = ...")
4201
4201
4202
4202
[case testNonePartialType4]
4203
4203
import a
@@ -4213,7 +4213,7 @@ def f() -> None:
4213
4213
global y
4214
4214
y = ''
4215
4215
[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>] = ...")
4217
4217
==
4218
4218
4219
4219
[case testSkippedClass1]
You can’t perform that action at this time.
0 commit comments