[syntax-errors] Use consistent message for bad starred expression usage. (#17772)

This commit is contained in:
Abhijeet Prasad Bodas 2025-05-01 23:48:35 +05:30 committed by GitHub
parent b7ce694162
commit 0c80c56afc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 15 additions and 15 deletions

View file

@ -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!(