Triage high-value ty diagnostics
Quality Gate / gate (push) Failing after 47s

Apply the highest-value typing fixes from the ty baseline pass:
- align migration row typing with SQLAlchemy RowMapping sequences
- accept refreshable callback return type in homepage gallery
- guard nullable media URL before ui.image in people photos
- guard nullable source MIME type before startswith checks
- fix tests/test_db collect() return annotation to match 4-tuple

This clears all actionable ty findings from that set and leaves only
known SQLModel/SQLAlchemy descriptor false positives.

Co-authored-by: Copilot App <[email protected]>
This commit is contained in:
Jim Lancaster
2026-08-23 16:54:34 -05:00
co-authored by Copilot App
parent 67feeb28af
commit 8a30231adf
5 changed files with 21 additions and 8 deletions
+8 -1
View File
@@ -141,7 +141,14 @@ async def test_create_all_declares_hot_path_indexes(tmp_path):
await create_all(engine=runtime.engine)
async with runtime.engine.connect() as connection:
def collect(sync_connection) -> tuple[dict[str, list[list[str]]], list[list[str]]]:
def collect(
sync_connection,
) -> tuple[
dict[str, list[list[str]]],
list[list[str]],
list[list[str]],
list[list[str]],
]:
database = inspect(sync_connection)
indexes = {
table: [index["column_names"] for index in database.get_indexes(table)]