mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +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