mirror of https://github.com/astral-sh/ruff
Update compiler/parser/src/error.rs
Co-authored-by: fanninpm <fanninpm@miamioh.edu>
This commit is contained in:
parent
7e7b2eadee
commit
16173bf581
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue