fix: batch reset while making SABB by rohitwaghchaure [frappe] PR#42076
From: https://github.com/frappe/erpnext/pull/42076
Date: 2024-07-01 14:14:19+05:30
- fix: batch reset while making SABB (#42076)
Diagnostics
pre-commit failed for source commit: 8f424528ddf4e8ab198a1fa6b909a825c4a233d7
Run ruff linter..........................................................Failed
- hook id: ruff
- exit code: 1
erpnext/stock/doctype/serial_and_batch_bundle/test_serial_and_batch_bundle.py:710:9: RUF015 Prefer `next(iter(batches.keys()))` over single element slice
Found 1 error.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-42076
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-42076
# Make changes then rebase
git rebase -i develop
# Fix or ignore conflicts
git checkout --theirs .
git rebase --continue
# Force-push changes
git push --force-with-lease