From 7779dcbadd891af60ea39960e7e694b6992fa0fe Mon Sep 17 00:00:00 2001 From: d3vyce Date: Tue, 28 Jul 2026 07:57:49 -0400 Subject: [PATCH] fix: ty warning --- src/fastapi_toolsets/models/watched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastapi_toolsets/models/watched.py b/src/fastapi_toolsets/models/watched.py index 8ca13e5..fb6ef07 100644 --- a/src/fastapi_toolsets/models/watched.py +++ b/src/fastapi_toolsets/models/watched.py @@ -193,7 +193,7 @@ async def _batch_reload( session: AsyncSession, model: type, pk_tuples: list[tuple[Any, ...]] ) -> None: """Re-populate all rows of *model* identified by *pk_tuples* in one round trip.""" - pk_cols = sa_inspect(model).primary_key + pk_cols = sa_inspect(model, raiseerr=True).primary_key where = ( pk_cols[0].in_([pk[0] for pk in pk_tuples]) if len(pk_cols) == 1