Given this file:
def f():
return (1 == '2')() # Tab indented
Ruff gets the range correctly:
$ ruff check --select PLR0133 --isolated
foo.py:2:10: PLR0133 Two constants compared in a comparison, consider replacing `1 == '2'`
|
1 | def f():
2 | return (1 == '2')() # Tab indented
| ^ PLR0133
|
Found 1 error.
But Red Knot doesn't:
$ red_knot check --venv-path .venv
error: lint:call-non-callable
--> ~\project\foo.py:2:9
|
1 | def f():
2 | return (1 == '2')() # Tab indented
| ^^^^^^^^^^^^ Object of type `bool` is not callable
|