Skip to content

Commit

Permalink
Updated config.py to remove Optional and use python standard of Postg…
Browse files Browse the repository at this point in the history
…resDsn | None = None
  • Loading branch information
jcadam14 committed Jan 3, 2024
1 parent 524107d commit 0c073ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0c073ae

Please sign in to comment.