We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c8c92 commit ca5cd7aCopy full SHA for ca5cd7a
packages/postgres-database/src/simcore_postgres_database/utils_comp_runs.py
@@ -1,3 +1,5 @@
1
+from typing import cast
2
+
3
import sqlalchemy as sa
4
from pydantic import PositiveInt
5
from sqlalchemy.ext.asyncio import AsyncConnection, AsyncEngine
@@ -67,4 +69,4 @@ async def get_latest_run_id_for_project(
67
69
row = result.one_or_none()
68
70
if not row:
71
raise ValueError("improve")
- return row.run_id
72
+ return cast(PositiveInt, row.run_id)
0 commit comments