Skip to content

Commit 9aba7a8

Browse files
committed
Add mypy test fixes
1 parent 6ba2457 commit 9aba7a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/typing/configuration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from pathlib import Path
2+
from typing import Any
23

34
from dependency_injector import providers
45
from pydantic import BaseSettings as PydanticSettings
56

67

78
# Test 1: to check the getattr
8-
config1 = providers.Configuration()
9-
provider1 = providers.Factory(dict, a=config1.a)
9+
config1: providers.Provide[Any] = providers.Configuration()
10+
provider1: providers.Provider[dict] = providers.Factory(dict, a=config1.a)
1011

1112
# Test 2: to check the from_*() method
1213
config2 = providers.Configuration()

0 commit comments

Comments
 (0)