MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / insert

Method insert

lib/sqlalchemy/util/_collections_cy.py:132–135  ·  view source on GitHub ↗
(self, pos: cython.Py_ssize_t, element: _T, /)

Source from the content-addressed store, hash-verified

130 return value
131
132 def insert(self, pos: cython.Py_ssize_t, element: _T, /) -> None:
133 if element not in self:
134 self._list.insert(pos, element)
135 set.add(self, element)
136
137 def discard(self, element: _T, /) -> None:
138 if element in self:

Callers 2

goFunction · 0.45
inject_docstring_textFunction · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected