MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / isa

Method isa

lib/sqlalchemy/orm/mapper.py:3345–3351  ·  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

3343 return _state_mapper(state) is s
3344
3345 def isa(self, other: Mapper[Any]) -> bool:
3346 """Return True if the this mapper inherits from the given mapper."""
3347
3348 m: Optional[Mapper[Any]] = self
3349 while m and m is not other:
3350 m = m.inherits
3351 return bool(m)
3352
3353 def iterate_to_root(self) -> Iterator[Mapper[Any]]:
3354 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