From 54ffa9c508eac89ea500922db3ba40ffb2d91b3b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 8 May 2025 22:56:52 -0700 Subject: [PATCH] mypy fix --- sqlite_utils/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index 69531d2..bc65f2f 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -3666,7 +3666,7 @@ class Table(Queryable): already exists. """ if isinstance(other_table, str): - other_table = self.db.table(other_table, pk=pk) + other_table = cast(Table, self.db.table(other_table, pk=pk)) our_id = self.last_pk if lookup is not None: assert record_or_iterable is None, "Provide lookup= or record, not both"