Skip to content
Snippets Groups Projects
Commit ec24f478 authored by Tim Repke's avatar Tim Repke
Browse files

appease mypy

parent bb702cba
No related branches found
No related tags found
1 merge request!103Main
Pipeline #3740 passed
......@@ -464,7 +464,7 @@ async def edit_assignment(info: AssignmentEditInfo,
Assignment.user_id == info.user_id,
Assignment.assignment_scope_id == info.scope_id
))).scalars().one_or_none()
n_annotations: int = (await session.execute(
n_annotations: int = (await session.execute( # type: ignore[assignment]
select(F.count(Annotation.annotation_id).label('n_annotations'))
.join(Assignment)
.where(Assignment.item_id == info.item_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment