Skip to content

Commit

Permalink
Release version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
raceychan committed Dec 2, 2024
1 parent 4d843eb commit a06daa1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ididi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
license: MIT, see LICENSE for more details.
"""

VERSION = "1.0.10"
VERSION = "1.1.0"

__version__ = VERSION

Expand Down
1 change: 1 addition & 0 deletions ididi/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a06daa1

Please sign in to comment.