This commit is contained in:
Simon Willison 2025-05-08 22:56:52 -07:00
commit 54ffa9c508

View file

@ -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"