ruff/crates/ruff_linter
Mikko Leppänen ad2cfa3dba
[flake8-return] Consider exception suppress for unnecessary assignment (#9673)
## Summary

This review contains a fix for
[RET504](https://docs.astral.sh/ruff/rules/unnecessary-assign/)
(unnecessary-assign)

The problem is that Ruff suggests combining a return statement inside
contextlib.suppress. Even though it is an unsafe fix it might lead to an
invalid code that is not equivalent to the original one.

See: https://github.com/astral-sh/ruff/issues/5909

## Test Plan

```bash
cargo test
```
2024-01-29 12:29:05 -05:00
..
resources [flake8-return] Consider exception suppress for unnecessary assignment (#9673) 2024-01-29 12:29:05 -05:00
src [flake8-return] Consider exception suppress for unnecessary assignment (#9673) 2024-01-29 12:29:05 -05:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Bump version to v0.1.14 (#9581) 2024-01-19 12:54:39 -05:00