Skip to content

Commit bf8ca03

Browse files
committed
update error message after astral-sh#17772
1 parent ea62fc9 commit bf8ca03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/ty_python_semantic/resources/mdtest/diagnostics/semantic_syntax_errors.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,18 +212,18 @@ Star expressions can't be used in certain contexts:
212212

213213
```py
214214
def func():
215-
# error: [invalid-syntax] "can't use starred expression here"
215+
# error: [invalid-syntax] "Starred expression cannot be used here"
216216
return *[1, 2, 3]
217217

218218
def gen():
219-
# error: [invalid-syntax] "can't use starred expression here"
219+
# error: [invalid-syntax] "Starred expression cannot be used here"
220220
yield * [1, 2, 3]
221221

222-
# error: [invalid-syntax] "can't use starred expression here"
222+
# error: [invalid-syntax] "Starred expression cannot be used here"
223223
for *x in range(10):
224224
pass
225225

226-
# error: [invalid-syntax] "can't use starred expression here"
226+
# error: [invalid-syntax] "Starred expression cannot be used here"
227227
for x in *range(10):
228228
pass
229229
```

0 commit comments

Comments
 (0)