MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / corresponds_to

Method corresponds_to

lib/sqlalchemy/orm/context.py:3398–3405  ·  view source on GitHub ↗
(self, entity)

Source from the content-addressed store, hash-verified

3396 )
3397
3398 def corresponds_to(self, entity):
3399 if _is_aliased_class(entity):
3400 # TODO: polymorphic subclasses ?
3401 return entity is self.entity_zero
3402 else:
3403 return not _is_aliased_class(
3404 self.entity_zero
3405 ) and entity.common_parent(self.entity_zero)
3406
3407 def setup_dml_returning_compile_state(
3408 self,

Callers

nothing calls this directly

Calls 2

_is_aliased_classFunction · 0.85
common_parentMethod · 0.80

Tested by

no test coverage detected