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

Method isa

lib/sqlalchemy/orm/mapper.py:3387–3393  ·  view source on GitHub ↗

Return True if the this mapper inherits from the given mapper.

(self, other: Mapper[Any])

Source from the content-addressed store, hash-verified

3385 return _state_mapper(state) is s
3386
3387 def isa(self, other: Mapper[Any]) -> bool:
3388 """Return True if the this mapper inherits from the given mapper."""
3389
3390 m: Optional[Mapper[Any]] = self
3391 while m and m is not other:
3392 m = m.inherits
3393 return bool(m)
3394
3395 def iterate_to_root(self) -> Iterator[Mapper[Any]]:
3396 m: Optional[Mapper[Any]] = self

Callers 15

is_siblingMethod · 0.95
_populate_cacheMethod · 0.80
contains_mapperMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
_chop_pathMethod · 0.80
cascade_iteratorMethod · 0.80
mark_exclude_colsMethod · 0.80
_bulk_updateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected