Add .provided attribute to the Dependency provider

This commit is contained in:
Roman Mogylatov 2020-08-20 16:51:13 -04:00
parent dd128b0b0b
commit 0509af8061
2 changed files with 3310 additions and 3236 deletions

File diff suppressed because it is too large Load Diff

View File

@ -484,6 +484,11 @@ cdef class Dependency(Provider):
"""
return self.__str__()
@property
def provided(self):
"""Return :py:class:`ProvidedInstance` provider."""
return ProvidedInstance(self)
@property
def instance_of(self):
"""Return class of required dependency."""