mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-27 12:04:00 +03:00
12 lines
311 B
Python
12 lines
311 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
|
|
c1: providers.ProvidedInstance = provider1.c.provided
|