MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / adapt_to_entity

Method adapt_to_entity

lib/sqlalchemy/orm/attributes.py:690–697  ·  view source on GitHub ↗
(self, adapt_to_entity)

Source from the content-addressed store, hash-verified

688 return self._comparator
689
690 def adapt_to_entity(self, adapt_to_entity):
691 return self.__class__(
692 adapt_to_entity.entity,
693 self.key,
694 self.descriptor,
695 self._comparator,
696 adapt_to_entity,
697 )
698
699 def _clone(self, **kw):
700 return self.__class__(

Callers 4

__getattr__Method · 0.45
_get_from_serializedMethod · 0.45
adapt_to_entityMethod · 0.45
comparatorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected