mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
[syntax-errors] Use consistent message for bad starred expression usage. (#17772)
This commit is contained in:
parent
b7ce694162
commit
0c80c56afc
9 changed files with 15 additions and 15 deletions
|
@ -941,7 +941,7 @@ impl Display for SemanticSyntaxError {
|
|||
write!(f, "name `{name}` is used prior to global declaration")
|
||||
}
|
||||
SemanticSyntaxErrorKind::InvalidStarExpression => {
|
||||
f.write_str("can't use starred expression here")
|
||||
f.write_str("Starred expression cannot be used here")
|
||||
}
|
||||
SemanticSyntaxErrorKind::AsyncComprehensionInSyncComprehension(python_version) => {
|
||||
write!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue