Skip to content

Commit 0613e85

Browse files
ImTotemclaude
andcommitted
fix(lint): use Sequence[str] for approve app_ids parameter
list[ID] is not assignable to list[str] due to invariance. Sequence is covariant and accepts both. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2946aba commit 0613e85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bcsd_api/apply/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from collections.abc import Sequence
12
from datetime import datetime
23

34
from bcsd_api.exception import BadRequest, Conflict, Forbidden, NotFound
@@ -124,7 +125,7 @@ def approve(
124125
app_repo: PgApplicationRepository,
125126
member_repo: PgMemberRepository,
126127
form_repo: PgFormRepository,
127-
app_ids: list[str],
128+
app_ids: Sequence[str],
128129
admin_id: str,
129130
) -> list[ApplicationResponse]:
130131
now = _now()

0 commit comments

Comments
 (0)