MCPcopy Create free account
hub / github.com/Mercury7353/PyBench / __exit__

Method __exit__

llms/api_key_pool.py:195–197  ·  view source on GitHub ↗

Put the resource back in the pool.

(self, exc_type, exc_value, exc_traceback)

Source from the content-addressed store, hash-verified

193
194 @abstractmethod
195 def __exit__(self, exc_type, exc_value, exc_traceback) -> bool:
196 """Put the resource back in the pool."""
197 raise NotImplementedError
198
199 def _remove_cur_arg(self) -> None:
200 logger.info(f"removing api key {self.queue[self._index]}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected