⬆️ Update SQLModel to version >=0.0.21 (#1275)

This commit is contained in:
Alejandra
2024-07-31 17:14:04 -05:00
committed by GitHub
parent 6606bfcb53
commit 684256adbe
3 changed files with 47 additions and 61 deletions

View File

@@ -34,7 +34,7 @@ class Settings(BaseSettings):
DOMAIN: str = "localhost"
ENVIRONMENT: Literal["local", "staging", "production"] = "local"
@computed_field # type: ignore[misc]
@computed_field # type: ignore[prop-decorator]
@property
def server_host(self) -> str:
# Use HTTPS for anything other than local development
@@ -54,7 +54,7 @@ class Settings(BaseSettings):
POSTGRES_PASSWORD: str = ""
POSTGRES_DB: str = ""
@computed_field # type: ignore[misc]
@computed_field # type: ignore[prop-decorator]
@property
def SQLALCHEMY_DATABASE_URI(self) -> PostgresDsn:
return MultiHostUrl.build(
@@ -84,7 +84,7 @@ class Settings(BaseSettings):
EMAIL_RESET_TOKEN_EXPIRE_HOURS: int = 48
@computed_field # type: ignore[misc]
@computed_field # type: ignore[prop-decorator]
@property
def emails_enabled(self) -> bool:
return bool(self.SMTP_HOST and self.EMAILS_FROM_EMAIL)