diff --git a/tests/test_db_config.py b/tests/test_db_config.py index 508b0dd..cb4fc38 100644 --- a/tests/test_db_config.py +++ b/tests/test_db_config.py @@ -1,4 +1,4 @@ -from typing import Dict +from typing import Dict, Optional from pydantic import Field, PostgresDsn from pydantic_settings import BaseSettings @@ -9,8 +9,8 @@ def test_empty(): class DatabaseConfig(BaseDBConfig): - default: PostgresDsn | None = None - replica: Dict | None = None + default: Optional[PostgresDsn] = None + replica: Optional[Dict] = None db_settings = DatabaseConfig() assert db_settings.model_dump() == {"default": {}, "replica": {}}