Skip to content

fix(eap): Fix possibly-undefined group_list in delete helper#109518

Merged
scttcper merged 1 commit intomasterfrom
scttcper/fix-group-index-delete-undefined
Feb 26, 2026
Merged

fix(eap): Fix possibly-undefined group_list in delete helper#109518
scttcper merged 1 commit intomasterfrom
scttcper/fix-group-index-delete-undefined

Conversation

@scttcper
Copy link
Member

silences a mypy warning with --enable-error-code possibly-undefined. Initialize group_list = [] before the if/elif so mypy can see it's always defined. there's already a check if the list is empty.

Initialize group_list = [] before the if/elif so mypy can see it's
always defined. If neither group_ids nor search_fn is provided the
empty list hits the existing early return at line 173.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 26, 2026
@scttcper scttcper marked this pull request as ready for review February 26, 2026 21:43
@scttcper scttcper requested a review from a team as a code owner February 26, 2026 21:43
@scttcper scttcper merged commit 4cab626 into master Feb 26, 2026
57 checks passed
@scttcper scttcper deleted the scttcper/fix-group-index-delete-undefined branch February 26, 2026 22:32
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants