python-dependency-injector/tests/typing/provider.py

7 lines
198 B
Python
Raw Normal View History

from dependency_injector import providers
# Test 1: to check .provided attribute
provider1: providers.Provider[int] = providers.Object(1)
provided: providers.ProvidedInstance = provider1.provided