mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 15:44:22 -05:00
Update compiler/parser/src/error.rs
Co-authored-by: fanninpm <fanninpm@miamioh.edu>
This commit is contained in:
@@ -55,7 +55,7 @@ impl fmt::Display for LexicalErrorType {
|
||||
write!(f, "duplicate argument '{arg_name}' in function definition")
|
||||
}
|
||||
LexicalErrorType::DuplicateKeywordArgumentError(arg_name) => {
|
||||
write!(f, "keyword argument '{arg_name}' repeated")
|
||||
write!(f, "keyword argument repeated: {arg_name}")
|
||||
}
|
||||
LexicalErrorType::PositionalArgumentError => {
|
||||
write!(f, "positional argument follows keyword argument")
|
||||
|
||||
Reference in New Issue
Block a user