[syntax-errors] Use consistent message for bad starred expression usage. (#17772)
This commit is contained in:
committed by
GitHub
parent
b7ce694162
commit
0c80c56afc
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user