mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
Rename operator-unsupported
to unsupported-operator
(#13973)
## Summary Closes https://github.com/astral-sh/ruff/issues/13959.
This commit is contained in:
parent
9a0dade925
commit
b19862c64a
2 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ reveal_type(A() != object()) # revealed: bool
|
|||
reveal_type(object() == A()) # revealed: bool
|
||||
reveal_type(object() != A()) # revealed: bool
|
||||
|
||||
# error: [operator-unsupported] "Operator `<` is not supported for types `A` and `object`"
|
||||
# error: [unsupported-operator] "Operator `<` is not supported for types `A` and `object`"
|
||||
# revealed: Unknown
|
||||
reveal_type(A() < object())
|
||||
```
|
||||
|
|
|
@ -2839,7 +2839,7 @@ impl<'db> TypeInferenceBuilder<'db> {
|
|||
// Handle unsupported operators (diagnostic, `bool`/`Unknown` outcome)
|
||||
self.add_diagnostic(
|
||||
AnyNodeRef::ExprCompare(compare),
|
||||
"operator-unsupported",
|
||||
"unsupported-operator",
|
||||
format_args!(
|
||||
"Operator `{}` is not supported for types `{}` and `{}`{}",
|
||||
error.op,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue