Docs mention "Fix is always available." but it is flagged as unsafe in the code
ruff --version
ruff 0.6.1
Code
with isinstance(2, (int,float)) I get
test.py:1:1: UP038 Use `X | Y` in `isinstance` call instead of `(X, Y)`
|
1 | isinstance(2, (int, float))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ UP038
|
= help: Convert to `X | Y`
Found 1 error.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).
Related to #2923
Docs mention "Fix is always available." but it is flagged as unsafe in the code
Code
with
isinstance(2, (int,float))I getRelated to #2923