MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / __aenter__

Method __aenter__

trainer/src/api_client/client.py:125–128  ·  view source on GitHub ↗

Enter a context manager for underlying httpx.AsyncClient—you cannot enter twice (see httpx docs)

(self)

Source from the content-addressed store, hash-verified

123 return self._async_client
124
125 async def __aenter__(self) -> "Client":
126 """Enter a context manager for underlying httpx.AsyncClient—you cannot enter twice (see httpx docs)"""
127 await self.get_async_httpx_client().__aenter__()
128 return self
129
130 async def __aexit__(self, *args: Any, **kwargs: Any) -> None:
131 """Exit a context manager for underlying httpx.AsyncClient (see httpx docs)"""

Callers 1

__aenter__Method · 0.45

Calls 1

Tested by

no test coverage detected