MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / update

Method update

lib/sqlalchemy/util/_py_collections.py:224–229  ·  view source on GitHub ↗
(self, *iterables: Iterable[_T])

Source from the content-addressed store, hash-verified

222 __str__ = __repr__
223
224 def update(self, *iterables: Iterable[_T]) -> None:
225 for iterable in iterables:
226 for e in iterable:
227 if e not in self:
228 self._list.append(e)
229 super().add(e)
230
231 def __ior__(self, other: AbstractSet[_S]) -> OrderedSet[Union[_T, _S]]:
232 self.update(other)

Callers 15

for_update_clauseMethod · 0.95
for_update_clauseMethod · 0.95
reflectMethod · 0.95
__ior__Method · 0.95
test_updateMethod · 0.95
unionMethod · 0.45
_union_w_kwMethod · 0.45
merge_withMethod · 0.45
__init__Method · 0.45
copyMethod · 0.45
unionMethod · 0.45

Calls 2

appendMethod · 0.45
addMethod · 0.45

Tested by 2

test_updateMethod · 0.76