From a06daa1eb0bab14c4343ad10d5b8eef52baf6d94 Mon Sep 17 00:00:00 2001 From: raceychan Date: Mon, 2 Dec 2024 17:21:33 +0800 Subject: [PATCH] Release version 1.1.0 --- README.md | 1 - ididi/__init__.py | 2 +- ididi/graph.py | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c7dfc33d..0f310239 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,6 @@ from ididi import inject, entry, DependencyGraph async def get_db(dg: DependencyGraph, client: Client) -> ty.AsyncGenerator[DataBase, None]: repository = dg.resolve(Repository) db = DataBase(repository, client) - assert client.is_opened try: await db.connect() yield db diff --git a/ididi/__init__.py b/ididi/__init__.py index f0d79ce7..a9ef82f0 100644 --- a/ididi/__init__.py +++ b/ididi/__init__.py @@ -14,7 +14,7 @@ license: MIT, see LICENSE for more details. """ -VERSION = "1.0.10" +VERSION = "1.1.0" __version__ = VERSION diff --git a/ididi/graph.py b/ididi/graph.py index 67efb44e..87447502 100644 --- a/ididi/graph.py +++ b/ididi/graph.py @@ -707,6 +707,7 @@ async def aresolve( for param_name, param_type in node.unsolved_params(tuple(resolved_params)): if param_type is DependencyGraph: + # TODO: if not self.config.reuse create new resolved_params[param_name] = self else: resolved_params[param_name] = await self.aresolve(param_type, scope)