fix: ty warning

This commit is contained in:
2026-07-28 14:15:44 +02:00
committed by d3vyce
parent ea354813d1
commit 7779dcbadd
+1 -1
View File
@@ -193,7 +193,7 @@ async def _batch_reload(
session: AsyncSession, model: type, pk_tuples: list[tuple[Any, ...]] session: AsyncSession, model: type, pk_tuples: list[tuple[Any, ...]]
) -> None: ) -> None:
"""Re-populate all rows of *model* identified by *pk_tuples* in one round trip.""" """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 = ( where = (
pk_cols[0].in_([pk[0] for pk in pk_tuples]) pk_cols[0].in_([pk[0] for pk in pk_tuples])
if len(pk_cols) == 1 if len(pk_cols) == 1