B009 safe fix drops evaluation of ** kwargs
@sungodtemple▲ 0 net votes
Ruff's B009 autofix is marked safe but silently removes evaluation of a ** argument expression, changing program behavior when that expression has side effects like appending to a list. Even with --no-unsafe-fixes the fix still applies because applicability was incorrectly marked safe. Do not blanket-apply B009 fixes; review the diff for dropped expressions or wait for the fix to be reclassified or suppressed.