Modifef other references to pydantic

This commit is contained in:
Subhadeep Das 2024-07-10 10:06:19 +05:30 committed by GitHub
parent d5c323b2d8
commit aa58d7528d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View File

@ -223,7 +223,7 @@ the container will call ``config.from_pydantic()`` automatically:
or install ``pydantic`` directly::
pip install pydantic
pip install pydantic-settings
*Don't forget to mirror the changes in the requirements file.*

View File

@ -3,7 +3,7 @@
import os
from dependency_injector import containers, providers
from pydantic import BaseSettings, Field
from pydantic_settings import BaseSettings, Field
# Emulate environment variables
os.environ["AWS_ACCESS_KEY_ID"] = "KEY"

View File

@ -3,7 +3,7 @@
import os
from dependency_injector import containers, providers
from pydantic import BaseSettings, Field
from pydantic_settings import BaseSettings, Field
# Emulate environment variables
os.environ["AWS_ACCESS_KEY_ID"] = "KEY"

View File

@ -49,7 +49,7 @@ except ImportError:
yaml = None
try:
import pydantic
import pydantic_settings as pydantic
except ImportError:
pydantic = None

View File

@ -1,7 +1,7 @@
from pathlib import Path
from dependency_injector import providers
from pydantic import BaseSettings as PydanticSettings
from pydantic_settings import BaseSettings as PydanticSettings
# Test 1: to check the getattr

View File

@ -1,6 +1,6 @@
"""Configuration.from_pydantic() tests."""
import pydantic
import pydantic_settings as pydantic
from dependency_injector import providers, errors
from pytest import fixture, mark, raises

View File

@ -1,6 +1,6 @@
"""Configuration.from_pydantic() tests."""
import pydantic
import pydantic_settings as pydantic
from dependency_injector import providers
from pytest import fixture, mark, raises