Skip to content

Commit 749422c

Browse files
Copilots3rius
andcommitted
Add comprehensive KeyValue test coverage and fix KVConfig type stubs
Co-authored-by: s3rius <18153319+s3rius@users.noreply.github.com> Agent-Logs-Url: https://github.com/taskiq-python/natsrpy/sessions/ee16d7cc-5cf8-4996-9622-78eb546b14b2
1 parent dbf56ec commit 749422c

File tree

2 files changed

+664
-4
lines changed

2 files changed

+664
-4
lines changed

python/natsrpy/_natsrpy_rs/js/kv.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class KVConfig:
7575
description: str
7676
max_value_size: int | None
7777
history: int | None
78-
max_age: float | None
78+
max_age: timedelta | None
7979
max_bytes: int | None
8080
storage: StorageType | None
8181
num_replicas: int | None
@@ -85,15 +85,15 @@ class KVConfig:
8585
mirror_direct: bool | None
8686
compression: bool | None
8787
placement: Placement | None
88-
limit_markers: float | None
88+
limit_markers: timedelta | None
8989

9090
def __new__(
9191
cls,
9292
bucket: str,
9393
description: str | None = None,
9494
max_value_size: int | None = None,
9595
history: int | None = None,
96-
max_age: float | None = None,
96+
max_age: timedelta | None = None,
9797
max_bytes: int | None = None,
9898
storage: StorageType | None = None,
9999
num_replicas: int | None = None,
@@ -103,7 +103,7 @@ class KVConfig:
103103
mirror_direct: bool | None = None,
104104
compression: bool | None = None,
105105
placement: Placement | None = None,
106-
limit_markers: float | None = None,
106+
limit_markers: timedelta | None = None,
107107
) -> Self: ...
108108

109109
@final

0 commit comments

Comments
 (0)