MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / iterate_to_root

Method iterate_to_root

lib/sqlalchemy/orm/mapper.py:3353–3357  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3351 return bool(m)
3352
3353 def iterate_to_root(self) -> Iterator[Mapper[Any]]:
3354 m: Optional[Mapper[Any]] = self
3355 while m:
3356 yield m
3357 m = m.inherits
3358
3359 @HasMemoized.memoized_attribute
3360 def self_and_descendants(self) -> Sequence[Mapper[Any]]:

Calls

no outgoing calls

Tested by

no test coverage detected