adriangb / di

Pythonic dependency injection
https://www.adriangb.com/di/
MIT License
301 stars 13 forks source link

Allow for non-executing Dependants #41

Closed adriangb closed 2 years ago

adriangb commented 2 years ago

It might be interesting to let Dependants with call = None be "non-executable": they exist in SolvedDependant as metadata, but they are not incorporated into the execution graph in any way.

adriangb commented 2 years ago

Implemented in 33966b72b9f1c91f42605f1d3b4702ac5f78ba68