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 has been archived by the owner on Jan 10, 2023. It is now read-only.
I was going to leave a comment here, but I realized I slightly misunderstood the issue at hand.
In the new issue I posted, I have a workaround to call a top-level-function and inject the args, but it would not support injecting params based on other function names. i.e. resolving the argument some_value to the function some_value.
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
self
parameter does not feel right to me.An example of what I am trying to do:
I would expect the output to be
4
Some things I tried:
For this to work I need to change
some_value
toBut 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.
The text was updated successfully, but these errors were encountered: