mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
some improvements for ProviderDelegate
This commit is contained in:
parent
120ef5d5cb
commit
6eadac8a75
|
@ -47,7 +47,7 @@ class ProviderDelegate(Provider):
|
|||
|
||||
def __call__(self):
|
||||
"""Return provided instance."""
|
||||
return self.delegated.__call__
|
||||
return self.delegated
|
||||
|
||||
|
||||
class NewInstance(Provider):
|
||||
|
|
Loading…
Reference in New Issue
Block a user