generated from john/python-template
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:
co-authored by
Copilot App
parent
67feeb28af
commit
8a30231adf
+8
-1
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user