MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / update

Method update

lib/sqlalchemy/util/_collections_cy.py:388–394  ·  view source on GitHub ↗
(self, iterable: Iterable[Any], /)

Source from the content-addressed store, hash-verified

386
387 @cython.ccall
388 def update(self, iterable: Iterable[Any], /):
389 members: Dict[int, Any] = self._members
390 if isinstance(iterable, IdentitySet):
391 members.update(cython.cast(IdentitySet, iterable)._members)
392 else:
393 for obj in iterable:
394 members[_get_id(obj)] = obj
395
396 def __ior__(self, other: Any) -> IdentitySet:
397 if not isinstance(other, IdentitySet):

Callers 2

__init__Method · 0.95
__ior__Method · 0.95

Calls 3

_get_idFunction · 0.85
updateMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected