Add mypy test fixes

This commit is contained in:
Roman Mogylatov 2024-06-04 23:20:03 -04:00
parent ae6bfb0c92
commit 93505331a9

View File

@ -1,12 +1,13 @@
from pathlib import Path from pathlib import Path
from typing import Any
from dependency_injector import providers from dependency_injector import providers
from pydantic import BaseSettings as PydanticSettings from pydantic import BaseSettings as PydanticSettings
# Test 1: to check the getattr # Test 1: to check the getattr
config1 = providers.Configuration() config1: providers.Provide[Any] = providers.Configuration()
provider1 = providers.Factory(dict, a=config1.a) provider1: providers.Provider[dict] = providers.Factory(dict, a=config1.a)
# Test 2: to check the from_*() method # Test 2: to check the from_*() method
config2 = providers.Configuration() config2 = providers.Configuration()