mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-28 12:33:59 +03:00
Add mypy test fixes
This commit is contained in:
parent
ae6bfb0c92
commit
93505331a9
|
@ -1,12 +1,13 @@
|
|||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from dependency_injector import providers
|
||||
from pydantic import BaseSettings as PydanticSettings
|
||||
|
||||
|
||||
# Test 1: to check the getattr
|
||||
config1 = providers.Configuration()
|
||||
provider1 = providers.Factory(dict, a=config1.a)
|
||||
config1: providers.Provide[Any] = providers.Configuration()
|
||||
provider1: providers.Provider[dict] = providers.Factory(dict, a=config1.a)
|
||||
|
||||
# Test 2: to check the from_*() method
|
||||
config2 = providers.Configuration()
|
||||
|
|
Loading…
Reference in New Issue
Block a user