Skip to content

Commit 32597b7

Browse files
fix: return value from Part.delete() to support dry_run
Part.delete() was not returning the result from super().delete(), causing dry_run=True to return None instead of the row count dict. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4ac22b6 commit 32597b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datajoint/user_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def delete(self, part_integrity: str = "enforce", **kwargs):
237237
"or use part_integrity='ignore' to break integrity, "
238238
"or part_integrity='cascade' to also delete master."
239239
)
240-
super().delete(part_integrity=part_integrity, **kwargs)
240+
return super().delete(part_integrity=part_integrity, **kwargs)
241241

242242
def drop(self, part_integrity: str = "enforce", dry_run: bool = False):
243243
"""

0 commit comments

Comments
 (0)