[ty] Clarify diagnostic message (#19203)

This diagnostic message was missing the word "type"
This commit is contained in:
David Peter 2025-07-08 14:21:20 +02:00 committed by GitHub
parent e16473d260
commit 6d8c84bde9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -3495,7 +3495,7 @@ impl<'db, 'ast> TypeInferenceBuilder<'db, 'ast> {
self.context.report_lint(&UNRESOLVED_ATTRIBUTE, target)
{
builder.into_diagnostic(format_args!(
"Can not assign object of `{}` to attribute \
"Can not assign object of type `{}` to attribute \
`{attribute}` on type `{}` with \
custom `__setattr__` method.",
value_ty.display(db),