MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _generate

Method _generate

lib/sqlalchemy/sql/traversals.py:198–202  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

196 __slots__ = ()
197
198 def _generate(self) -> Self:
199 cls = self.__class__
200 s = cls.__new__(cls)
201 self._shallow_copy_to(s)
202 return s
203
204
205def _clone(element, **kw):

Callers

nothing calls this directly

Calls 2

_shallow_copy_toMethod · 0.80
__new__Method · 0.45

Tested by

no test coverage detected