From 0c073aeeba5e7922043eb25bee30ca147bedfe9d Mon Sep 17 00:00:00 2001 From: Adam <41971533+jcadam14@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:10:10 -0500 Subject: [PATCH] Updated config.py to remove Optional and use python standard of PostgresDsn | None = None --- src/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.py b/src/config.py index 6ebbced..71fa457 100644 --- a/src/config.py +++ b/src/config.py @@ -1,6 +1,6 @@ import os from urllib import parse -from typing import Dict, Any, Optional +from typing import Dict, Any from pydantic import TypeAdapter, field_validator, ValidationInfo from pydantic.networks import HttpUrl, PostgresDsn @@ -21,7 +21,7 @@ class Settings(BaseSettings): inst_db_pwd: str inst_db_host: str inst_db_scheme: str = "postgresql+asyncpg" - inst_conn: Optional[PostgresDsn] = None + inst_conn: PostgresDsn | None = None auth_client: str auth_url: HttpUrl token_url: HttpUrl