You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
What is the reasoning for only allowing classes for injection and not allowing all callables?
Most of my providers/factories are simple callables / functions. Adding an unnecessary
selfparameter does not feel right to me.An example of what I am trying to do:
I would expect the output to be
4Some things I tried:
For this to work I need to change
some_valuetoBut when I want users to provide their custom providers I don't' want to force them to add this unneeded
self.I hope I could make it understood what I want to achieve. An inspiration are pytest fixtures.