MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _clone

Method _clone

lib/sqlalchemy/sql/traversals.py:178–182  ·  view source on GitHub ↗

Create a shallow copy

(self, **kw: Any)

Source from the content-addressed store, hash-verified

176 shallow_copy(self, other)
177
178 def _clone(self, **kw: Any) -> Self:
179 """Create a shallow copy"""
180 c = self.__class__.__new__(self.__class__)
181 self._shallow_copy_to(c)
182 return c
183
184
185class GenerativeOnTraversal(HasShallowCopy):

Callers 1

_cloneFunction · 0.45

Calls 2

_shallow_copy_toMethod · 0.95
__new__Method · 0.45

Tested by

no test coverage detected