mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
Update DependenciesContainer to handle Contrainer provider
This commit is contained in:
parent
5f34c7ce3f
commit
7ef3c63ca9
|
@ -17970,7 +17970,7 @@ static int __pyx_pf_19dependency_injector_9providers_21DependenciesContainer___i
|
|||
* self.__providers = dependencies
|
||||
*
|
||||
* for provider in dependencies.items(): # <<<<<<<<<<<<<<
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer)):
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer, Container)):
|
||||
* provider.set_parent(self)
|
||||
*/
|
||||
__pyx_t_1 = __Pyx_PyDict_Items(__pyx_v_dependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 834, __pyx_L1_error)
|
||||
|
@ -18021,7 +18021,7 @@ static int __pyx_pf_19dependency_injector_9providers_21DependenciesContainer___i
|
|||
/* "dependency_injector/providers.pyx":835
|
||||
*
|
||||
* for provider in dependencies.items():
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer)): # <<<<<<<<<<<<<<
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer, Container)): # <<<<<<<<<<<<<<
|
||||
* provider.set_parent(self)
|
||||
*
|
||||
*/
|
||||
|
@ -18034,14 +18034,21 @@ static int __pyx_pf_19dependency_injector_9providers_21DependenciesContainer___i
|
|||
}
|
||||
__pyx_t_7 = __Pyx_TypeCheck(__pyx_v_provider, __pyx_ptype_19dependency_injector_9providers_DependenciesContainer);
|
||||
__pyx_t_6 = (__pyx_t_7 != 0);
|
||||
__pyx_t_5 = __pyx_t_6;
|
||||
if (!__pyx_t_6) {
|
||||
} else {
|
||||
__pyx_t_5 = __pyx_t_6;
|
||||
goto __pyx_L6_bool_binop_done;
|
||||
}
|
||||
__pyx_t_6 = __Pyx_TypeCheck(__pyx_v_provider, __pyx_ptype_19dependency_injector_9providers_Container);
|
||||
__pyx_t_7 = (__pyx_t_6 != 0);
|
||||
__pyx_t_5 = __pyx_t_7;
|
||||
__pyx_L6_bool_binop_done:;
|
||||
__pyx_t_6 = (__pyx_t_5 != 0);
|
||||
if (__pyx_t_6) {
|
||||
__pyx_t_7 = (__pyx_t_5 != 0);
|
||||
if (__pyx_t_7) {
|
||||
|
||||
/* "dependency_injector/providers.pyx":836
|
||||
* for provider in dependencies.items():
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer)):
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer, Container)):
|
||||
* provider.set_parent(self) # <<<<<<<<<<<<<<
|
||||
*
|
||||
* self.__parent = None
|
||||
|
@ -18068,7 +18075,7 @@ static int __pyx_pf_19dependency_injector_9providers_21DependenciesContainer___i
|
|||
/* "dependency_injector/providers.pyx":835
|
||||
*
|
||||
* for provider in dependencies.items():
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer)): # <<<<<<<<<<<<<<
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer, Container)): # <<<<<<<<<<<<<<
|
||||
* provider.set_parent(self)
|
||||
*
|
||||
*/
|
||||
|
@ -18078,7 +18085,7 @@ static int __pyx_pf_19dependency_injector_9providers_21DependenciesContainer___i
|
|||
* self.__providers = dependencies
|
||||
*
|
||||
* for provider in dependencies.items(): # <<<<<<<<<<<<<<
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer)):
|
||||
* if isinstance(provider, (Dependency, DependenciesContainer, Container)):
|
||||
* provider.set_parent(self)
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -832,7 +832,7 @@ cdef class DependenciesContainer(Object):
|
|||
self.__providers = dependencies
|
||||
|
||||
for provider in dependencies.items():
|
||||
if isinstance(provider, (Dependency, DependenciesContainer)):
|
||||
if isinstance(provider, (Dependency, DependenciesContainer, Container)):
|
||||
provider.set_parent(self)
|
||||
|
||||
self.__parent = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user