API refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-07 16:25:52 +09:00
parent 76d0d86211
commit 91c7e04474
1171 changed files with 81940 additions and 44117 deletions

View File

@@ -1,5 +1,5 @@
# orm/sync.py
# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
# Copyright (C) 2005-2025 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
@@ -86,8 +86,9 @@ def clear(dest, dest_mapper, synchronize_pairs):
not in orm_util._none_set
):
raise AssertionError(
"Dependency rule tried to blank-out primary key "
"column '%s' on instance '%s'" % (r, orm_util.state_str(dest))
f"Dependency rule on column '{l}' "
"tried to blank-out primary key "
f"column '{r}' on instance '{orm_util.state_str(dest)}'"
)
try:
dest_mapper._set_state_attr_by_column(dest, dest.dict, r, None)