Add typing test

This commit is contained in:
Roman Mogylatov 2020-10-19 16:04:52 -04:00
parent e2224603cf
commit f0df91ed02

6
tests/typing/provider.py Normal file
View File

@ -0,0 +1,6 @@
from dependency_injector import providers
# Test 1: to check .provided attribute
provider1: providers.Provider[int] = providers.Object(1)
provided: providers.ProvidedInstance = provider1.provided