MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _prepend_path

Method _prepend_path

lib/sqlalchemy/orm/strategy_options.py:1809–1818  ·  view source on GitHub ↗
(self, path: PathRegistry)

Source from the content-addressed store, hash-verified

1807 return self._prepend_path(parent.path)
1808
1809 def _prepend_path(self, path: PathRegistry) -> Self:
1810 cloned = self._clone()
1811
1812 assert cloned.strategy == self.strategy
1813 assert cloned.local_opts == self.local_opts
1814 assert cloned.is_class_strategy == self.is_class_strategy
1815
1816 cloned.path = PathRegistry.coerce(path[0:-1] + cloned.path[:])
1817
1818 return cloned
1819
1820 @staticmethod
1821 def _reconcile(

Callers 1

_prepend_path_fromMethod · 0.95

Calls 2

_cloneMethod · 0.95
coerceMethod · 0.45

Tested by

no test coverage detected