Skip to content

Commit

Permalink
Fix py<310
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Oct 27, 2024
1 parent ac6bdf2 commit bf1deeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wireup/ioc/dependency_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def __async_create_instance(self, klass: type[T], qualifier: Qualifier | N
instance = (
next(instance_or_generator)
if factory_type == FactoryType.GENERATOR
else await anext(instance_or_generator)
else await instance_or_generator.__anext__()
)
else:
generator = None
Expand Down

0 comments on commit bf1deeb

Please sign in to comment.