From 41f297fa824fae94ac978a8bdfcbc258ac080959 Mon Sep 17 00:00:00 2001 From: Aldo Mateli Date: Sun, 27 Oct 2024 19:25:01 +0000 Subject: [PATCH] Fix readme example --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ca7441d..85f2130 100644 --- a/readme.md +++ b/readme.md @@ -79,7 +79,7 @@ Use factories (sync and async) if service requires special initialization or cle ```python @service async def make_db(dsn: Annotated[str, Inject(param="db_dsn")]) -> AsyncIterator[Connection]: - async with DB(dsn) as conn: + async with Connection(dsn) as conn: yield conn ```