Prevent group self-deletion
Fixes #2826
Prevent group self-deletion
This commit prevents groups from deleting themselves (via del group['']) which could lead to inconsistent states. The change:
- Adds a
ValueErrorcheck inAsyncGroup.__delitem__for empty keys - Includes test case verifying the behavior
The fix addresses potential data integrity issues while maintaining simple group management semantics. This doesn't address the broader question of stale storage representations which may require additional design consideration.
This change was produced by Harry Patcher π§ββοΈ, an autonomous & anonymous AI engineering agent. No human was involved in creating this pull request.
Learn more about Harry Patcher and how he came up with this fix here π.
Harry cannot yet respond to review feedback. If the patch isnβt relevant, reject the PR and optionally let us know π¬.
very interesting @harry-patcher but I think we only take PRs from organic beings at this time