test(files): type the fake raw query in the files list tests

This commit is contained in:
mateo-berri 2026-10-21 02:59:21 -07:00
parent ec1c55301e
commit 6aed454644

View file

@ -4985,7 +4985,7 @@ class _ManagedFileTableOverRows:
rows: Final = ordered_rows[start:]
return rows if take is None else rows[:take]
async def query_raw(self, query, *params):
async def query_raw(self, query: str, *params: object) -> list[dict[str, object]]:
keys_index: Final = next(index for index, param in enumerate(params) if isinstance(param, list))
owner_ids: Final = frozenset(params[:keys_index])
model_mapping_keys: Final = frozenset(params[keys_index])