From 93505331a9488b43356bd70a434a5c9d54c234ef Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Tue, 4 Jun 2024 23:20:03 -0400 Subject: [PATCH] Add mypy test fixes --- tests/typing/configuration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()