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/dependency.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
@@ -7,9 +7,7 @@
# mypy: ignore-errors
"""Relationship dependencies.
"""
"""Relationship dependencies."""
from __future__ import annotations
@@ -167,9 +165,11 @@ class DependencyProcessor:
sum_ = state.manager[self.key].impl.get_all_pending(
state,
state.dict,
self._passive_delete_flag
if isdelete
else attributes.PASSIVE_NO_INITIALIZE,
(
self._passive_delete_flag
if isdelete
else attributes.PASSIVE_NO_INITIALIZE
),
)
if not sum_:
@@ -1052,7 +1052,7 @@ class ManyToManyDP(DependencyProcessor):
# so that prop_has_changes() returns True
for state in states:
if self._pks_changed(uowcommit, state):
history = uowcommit.get_attribute_history(
uowcommit.get_attribute_history(
state, self.key, attributes.PASSIVE_OFF
)