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

Method iterate_to_root

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

Source from the content-addressed store, hash-verified

3393 return bool(m)
3394
3395 def iterate_to_root(self) -> Iterator[Mapper[Any]]:
3396 m: Optional[Mapper[Any]] = self
3397 while m:
3398 yield m
3399 m = m.inherits
3400
3401 @HasMemoized.memoized_attribute
3402 def self_and_descendants(self) -> Sequence[Mapper[Any]]:

Calls

no outgoing calls

Tested by

no test coverage detected