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

Method add

lib/sqlalchemy/util/_collections_cy.py:114–117  ·  view source on GitHub ↗
(self, element: _T, /)

Source from the content-addressed store, hash-verified

112 return new
113
114 def add(self, element: _T, /) -> None:
115 if element not in self:
116 self._list.append(element)
117 set.add(self, element)
118
119 def remove(self, element: _T, /) -> None:
120 # set.remove will raise if element is not in self

Callers 15

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

Calls 1

appendMethod · 0.45

Tested by 2

test_modifyMethod · 0.76
test_copyMethod · 0.76