mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
![]() ## 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] ``` |
||
---|---|---|
.. | ||
resources | ||
src | ||
Cargo.toml |