MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / add

Method add

lib/sqlalchemy/ext/associationproxy.py:1882–1884  ·  view source on GitHub ↗
(self, __element: _T, /)

Source from the content-addressed store, hash-verified

1880 return
1881
1882 def add(self, __element: _T, /) -> None:
1883 if __element not in self:
1884 self.col.add(self._create(__element))
1885
1886 # for discard and remove, choosing a more expensive check strategy rather
1887 # than call self.creator()

Callers 5

updateMethod · 0.95
__ior__Method · 0.95
intersection_updateMethod · 0.95
__iand__Method · 0.95

Calls 1

_createMethod · 0.45

Tested by

no test coverage detected