Skip to content

Commit

Permalink
Add mypy test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmk135 committed Jun 5, 2024
1 parent 6ba2457 commit 9aba7a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/typing/configuration.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 9aba7a8

Please sign in to comment.