diff --git a/tests/typing/configuration.py b/tests/typing/configuration.py index 386689d2..cbee72ea 100644 --- a/tests/typing/configuration.py +++ b/tests/typing/configuration.py @@ -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()