ruff/crates/ruff_linter
Hans 16621fa19d
[flake8-bugbear ] Add fix safety section (B006) (#17652)
## Summary

This PR add the `fix safety` section for rule `B006` in
`mutable_argument_default.rs` for #15584

When applying this rule for fixes, certain changes may alter the
original logical behavior. For example:

before:
```python
def cache(x, storage=[]):
    storage.append(x)
    return storage

print(cache(1))  # [1]
print(cache(2))  # [1, 2]
```

after:
```python
def cache(x, storage=[]):
    storage.append(x)
    return storage

print(cache(1))  # [1]
print(cache(2))  # [2]
```
2025-05-28 16:27:13 -04:00
..
resources [flake8-bugbear] Ignore __debug__ attribute in B010 (#18357) 2025-05-28 16:24:52 -04:00
src [flake8-bugbear ] Add fix safety section (B006) (#17652) 2025-05-28 16:27:13 -04:00
Cargo.toml Bump 0.11.11 (#18259) 2025-05-22 13:09:44 -05:00