MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __contains__

Method __contains__

pager_lib/tqdm/std.py:1131–1133  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

1129 self.iterable = orig
1130
1131 def __contains__(self, item):
1132 contains = getattr(self.iterable, '__contains__', None)
1133 return contains(item) if contains is not None else item in self.__iter__()
1134
1135 def __enter__(self):
1136 return self

Callers

nothing calls this directly

Calls 1

__iter__Method · 0.95

Tested by

no test coverage detected