Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kv-store-adapter"
version = "0.1.1"
version = "0.1.2"
description = "A pluggable interface for KV Stores"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion src/kv_store_adapter/adapters/pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def get(self, collection: str, key: str) -> T | None:

async def put(self, collection: str, key: str, value: T, *, ttl: float | None = None) -> None:
try:
value_dict: dict[str, Any] = value.model_dump()
value_dict: dict[str, Any] = value.model_dump(mode="json")
except PydanticSerializationError as e:
msg = f"Invalid Pydantic model: {e}"
raise SerializationError(msg) from e
Expand Down
1 change: 1 addition & 0 deletions tests/stores/redis/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

WAIT_FOR_REDIS_TIMEOUT = 30


async def ping_redis() -> bool:
client = Redis(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB, decode_responses=True)
try:
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.