mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 14:00:51 -05:00
## Summary
This PR enables autofix for the revised `RET504` rule, by changing:
```py
def f():
x = 1
return x
```
...to:
```py
def f():
return 1
```
Closes #2263.
Closes #2788.