MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __contains__

Method __contains__

lib/sqlalchemy/ext/associationproxy.py:1542–1547  ·  view source on GitHub ↗
(self, value: object)

Source from the content-addressed store, hash-verified

1540 del self.col[index]
1541
1542 def __contains__(self, value: object) -> bool:
1543 for member in self.col:
1544 # testlib.pragma exempt:__eq__
1545 if self._get(member) == value:
1546 return True
1547 return False
1548
1549 def __iter__(self) -> Iterator[_T]:
1550 """Iterate over proxied values.

Callers

nothing calls this directly

Calls 1

_getMethod · 0.45

Tested by

no test coverage detected