MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __iter__

Method __iter__

lib/sqlalchemy/ext/associationproxy.py:1549–1559  ·  view source on GitHub ↗

Iterate over proxied values. For the actual domain objects, iterate over .col instead or just use the underlying collection directly from its property on the parent.

(self)

Source from the content-addressed store, hash-verified

1547 return False
1548
1549 def __iter__(self) -> Iterator[_T]:
1550 """Iterate over proxied values.
1551
1552 For the actual domain objects, iterate over .col instead or
1553 just use the underlying collection directly from its property
1554 on the parent.
1555 """
1556
1557 for member in self.col:
1558 yield self._get(member)
1559 return
1560
1561 def append(self, value: _T) -> None:
1562 col = self.col

Callers

nothing calls this directly

Calls 1

_getMethod · 0.45

Tested by

no test coverage detected