New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
providers.Object not injecting the original object #231
Labels
Comments
Hello @davidcim , You're right, that is not expected behavior. Let me debug this... Thanks, |
Oh gosh, it creates a copy of Working on fix... |
Gosh, this bug is there since 3.0.0 that was published Nov 11, 2016... |
Fix is published in @davidcim , thanks a lot for reporting the issue. Roman |
@rmk135, thank you for fixing it so quickly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the documentation you can read about the Object provider:
However when I try to inject a parameter from an Object provider I get a different instance. I have been only able to get the original object using a Callable provider.
This code exemplifies the issue:
As you can see in the output, providers.Object is returning a different instance:
I am using Python 3.5.2 and dependency-injector 3.14.10
The text was updated successfully, but these errors were encountered: