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

Method __contains__

lib/sqlalchemy/ext/associationproxy.py:1865–1869  ·  view source on GitHub ↗
(self, __o: object)

Source from the content-addressed store, hash-verified

1863 return False
1864
1865 def __contains__(self, __o: object) -> bool:
1866 for member in self.col:
1867 if self._get(member) == __o:
1868 return True
1869 return False
1870
1871 def __iter__(self) -> Iterator[_T]:
1872 """Iterate over proxied values.

Callers

nothing calls this directly

Calls 1

_getMethod · 0.45

Tested by

no test coverage detected