mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 17:47:02 +03:00
11 lines
257 B
Python
11 lines
257 B
Python
|
from dependency_injector import providers
|
||
|
|
||
|
|
||
|
# Test 1: to check the getattr type
|
||
|
provider1 = providers.DependenciesContainer(
|
||
|
a=providers.Provider(),
|
||
|
b=providers.Provider(),
|
||
|
)
|
||
|
a1: providers.Provider = provider1.a
|
||
|
b1: providers.Provider = provider1.b
|