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

Method add

lib/sqlalchemy/util/_py_collections.py:179–182  ·  view source on GitHub ↗
(self, element: _T)

Source from the content-addressed store, hash-verified

177 return cp
178
179 def add(self, element: _T) -> None:
180 if element not in self:
181 self._list.append(element)
182 super().add(element)
183
184 def remove(self, element: _T) -> None:
185 super().remove(element)

Callers 15

polymorphic_unionFunction · 0.95
test_modifyMethod · 0.95
test_copyMethod · 0.95
insertMethod · 0.45
updateMethod · 0.45
sort_as_subsetsFunction · 0.45
find_cyclesFunction · 0.45
de_stringify_annotationFunction · 0.45
recursive_valueFunction · 0.45
pep695_valuesFunction · 0.45
__init__Method · 0.45

Calls 1

appendMethod · 0.45

Tested by 2

test_modifyMethod · 0.76
test_copyMethod · 0.76