Skip to content

Commit

Permalink
feat: support for Pydantic v2+
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeeva committed Nov 9, 2023
1 parent 6e0b82a commit e7596c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pgbelt/config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def save(self):
pass

async with aopen(self.file, "w") as f:
await f.write(self.json(indent=4))
await f.write(self.model_dump_json(indent=4))

logger.info("Cached config to disk.")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ packages = [
python = ">=3.9,<4.0"
aiofiles = ">=0.8,<23.3"
asyncpg = ">=0.27,<0.30"
pydantic = ">=1.10,<3.0"
pydantic = ">=2.0,<3.0"
tabulate = "^0.9.0"
typer = "^0.9.0"

Expand Down

0 comments on commit e7596c7

Please sign in to comment.