def result_key_iters(self): teed_results = tee(self, len(self.result_keys)) return [ ResultKeyIterator(i, result_key) for i, result_key in zip(teed_results, self.result_keys) ]
def result_key_iters(self): teed_results = tee(self, len(self.result_keys)) return [ResultKeyIterator(i, result_key) for i, result_key in zip(teed_results, self.result_keys)]
def _inject_token_into_kwargs(self, op_kwargs, next_token): for name, token in zip(self._input_token, next_token): if token is None or token == 'None': continue op_kwargs[name] = token