Skip to content

Commit

Permalink
Use consistent diagnostic messages in augmented assignment inference (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Oct 30, 2024
1 parent c6b8215 commit 1607d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/red_knot_python_semantic/src/types/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
),
Expand All @@ -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)
),
Expand Down

0 comments on commit 1607d88

Please sign in to comment.