From 71db25f78635183d7ac703ca5494c3ddd1956aec Mon Sep 17 00:00:00 2001 From: Eden Lumbroso Date: Sun, 1 Dec 2024 18:15:11 +0200 Subject: [PATCH] adding async to aenter in AsyncClient --- docs/first-server/python.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/first-server/python.mdx b/docs/first-server/python.mdx index 2105ec1..d48c966 100644 --- a/docs/first-server/python.mdx +++ b/docs/first-server/python.mdx @@ -751,7 +751,7 @@ uvicorn.run(app, host="0.0.0.0", port=8000) return mock_forecast_response class AsyncClient(): - def __aenter__(self): + async def __aenter__(self): return self async def __aexit__(self, *exc_info):