MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / common_parent

Method common_parent

lib/sqlalchemy/orm/mapper.py:3319–3323  ·  view source on GitHub ↗

Return true if the given mapper shares a common inherited parent as this mapper.

(self, other: Mapper[Any])

Source from the content-addressed store, hash-verified

3317 return False
3318
3319 def common_parent(self, other: Mapper[Any]) -> bool:
3320 """Return true if the given mapper shares a
3321 common inherited parent as this mapper."""
3322
3323 return self.base_mapper is other.base_mapper
3324
3325 def is_sibling(self, other: Mapper[Any]) -> bool:
3326 """return true if the other mapper is an inheriting sibling to this

Calls

no outgoing calls

Tested by

no test coverage detected