PLR1736
yields invalid suggestion and unsafe fix that changes semantics.
#8969
Labels
bug
Something isn't working
but it gets flagged and transform by the fixes into
which is wrong and now fails the assert. Seems like the refactor may have missed this test case. I ran this test on the PR before it was merged a few weeks agi and it ran fine so it might have something to do with either last minute changes to the PR or changes @charliermarsh made to the PR after it was merged (#8932). This is a contrived example with an unused, but it's simplified from a real failure case in
torch/optim/adamw.py
in the pytorch repo.Current ruff version is a build done on the latest master as of today 2023/12/2.
The text was updated successfully, but these errors were encountered: