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

Method _clone

lib/sqlalchemy/orm/strategy_options.py:1588–1593  ·  view source on GitHub ↗
(self, **kw: Any)

Source from the content-addressed store, hash-verified

1586 return bool(self.local_opts and self.strategy is None)
1587
1588 def _clone(self, **kw: Any) -> Self:
1589 cls = self.__class__
1590 s = cls.__new__(cls)
1591
1592 self._shallow_copy_to(s)
1593 return s
1594
1595 def _update_opts(self, **kw: Any) -> _LoadElement:
1596 new = self._clone()

Callers 7

_update_optsMethod · 0.95
_recurseMethod · 0.95
_prepend_pathMethod · 0.95
_prepend_pathMethod · 0.45
processMethod · 0.45
_reconcileMethod · 0.45

Calls 2

_shallow_copy_toMethod · 0.80
__new__Method · 0.45

Tested by

no test coverage detected