mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-16 03:20:50 +03:00
Add .provided attribute to the Dependency provider
This commit is contained in:
parent
dd128b0b0b
commit
0509af8061
File diff suppressed because it is too large
Load Diff
|
@ -484,6 +484,11 @@ cdef class Dependency(Provider):
|
||||||
"""
|
"""
|
||||||
return self.__str__()
|
return self.__str__()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def provided(self):
|
||||||
|
"""Return :py:class:`ProvidedInstance` provider."""
|
||||||
|
return ProvidedInstance(self)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def instance_of(self):
|
def instance_of(self):
|
||||||
"""Return class of required dependency."""
|
"""Return class of required dependency."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user