fix: add @property decorator to pydantic computed_field for compatibility (#23728)
This commit is contained in:
parent
d30f898274
commit
aaf9fc1562
1 changed files with 2 additions and 1 deletions
|
|
@ -144,7 +144,8 @@ class DatabaseConfig(BaseSettings):
|
|||
default="postgresql",
|
||||
)
|
||||
|
||||
@computed_field
|
||||
@computed_field # type: ignore[misc]
|
||||
@property
|
||||
def SQLALCHEMY_DATABASE_URI(self) -> str:
|
||||
db_extras = (
|
||||
f"{self.DB_EXTRAS}&client_encoding={self.DB_CHARSET}" if self.DB_CHARSET else self.DB_EXTRAS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue