fix: cleanup user data on trash by barredterra [frappe] PR#27068
From: https://github.com/frappe/frappe/pull/27068
Date: 2024-07-11 06:58:35+02:00
- fix: cleanup user data on trash (#27068)
Diagnostics
pre-commit failed for source commit: 0199069cb279e4f098e216bd7d430627676146d1
Run ruff linter..........................................................Failed
- hook id: ruff
- exit code: 1
frappe/core/doctype/user/user.py:878:56: RUF013 PEP 484 prohibits implicit `Optional`
frappe/core/doctype/user/user.py:878:82: RUF013 PEP 484 prohibits implicit `Optional`
frappe/core/doctype/user/user.py:1255:28: RUF005 Consider `[warning, *suggestions]` instead of concatenation
Found 3 errors.
No fixes available (3 hidden fixes can be enabled with the `--unsafe-fixes` option).
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-27068
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-27068
# 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