mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
Use consistent diagnostic messages in augmented assignment inference (#13986)
This commit is contained in:
parent
c6b82151dd
commit
1607d88c22
1 changed files with 2 additions and 2 deletions
|
@ -1438,7 +1438,7 @@ impl<'db> TypeInferenceBuilder<'db> {
|
|||
assignment.into(),
|
||||
"unsupported-operator",
|
||||
format_args!(
|
||||
"Operator `{op}=` is unsupported for type `{}` with type `{}`",
|
||||
"Operator `{op}=` is unsupported between objects of type `{}` and `{}`",
|
||||
target_type.display(self.db),
|
||||
value_type.display(self.db)
|
||||
),
|
||||
|
@ -1457,7 +1457,7 @@ impl<'db> TypeInferenceBuilder<'db> {
|
|||
assignment.into(),
|
||||
"unsupported-operator",
|
||||
format_args!(
|
||||
"Operator `{op}` is unsupported between objects of type `{}` and `{}`",
|
||||
"Operator `{op}=` is unsupported between objects of type `{}` and `{}`",
|
||||
left_ty.display(self.db),
|
||||
right_ty.display(self.db)
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue