Skip to content

Commit 91198f3

Browse files
committed
fix: correct return type for SQLALCHEMY_DATABASE_URI computed field
Replace MultiHostUrl.build() with PostgresDsn.build() to match the PostgresDsn return type annotation and resolve type checker error
1 parent ac60cae commit 91198f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def all_cors_origins(self) -> list[str]:
6060
@computed_field # type: ignore[prop-decorator]
6161
@property
6262
def SQLALCHEMY_DATABASE_URI(self) -> PostgresDsn:
63-
return MultiHostUrl.build(
63+
return PostgresDsn.build(
6464
scheme="postgresql+psycopg",
6565
username=self.POSTGRES_USER,
6666
password=self.POSTGRES_PASSWORD,

0 commit comments

Comments
 (0)