You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So apparently, f"{a}{b}" is not a truthy constant! And yet:
❯ ruff --version
ruff 0.1.11
❯ ruff check --isolated --select=SIM repro.py
repro.py:2:11: SIM222 Use `f"{a}{b}"` instead of `f"{a}{b}" or ...`
Found 1 error.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).
FWIW, SonarLint's python:S5797 triggers as well.
The text was updated successfully, but these errors were encountered:
Consider this script:
repro.py
When run, it prints:
So apparently,
f"{a}{b}"
is not a truthy constant! And yet:FWIW, SonarLint's python:S5797 triggers as well.
The text was updated successfully, but these errors were encountered: