MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / __iter__

Method __iter__

test/general/lm_eval/base.py:963–967  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

961 self.index = index
962
963 def __iter__(self):
964 if REQUEST_RETURN_LENGTHS[self.request_type] is None:
965 raise IndexError("This request type does not return multiple arguments!")
966 for i in range(REQUEST_RETURN_LENGTHS[self.request_type]):
967 yield Request(self.request_type, self.args, i)
968
969 def __getitem__(self, i):
970 if REQUEST_RETURN_LENGTHS[self.request_type] is None:

Callers

nothing calls this directly

Calls 1

RequestClass · 0.85

Tested by

no test coverage detected