From 8bca3c1ac8724f1bb24d0baa480eedfec0a71982 Mon Sep 17 00:00:00 2001 From: Kevin Evans Date: Wed, 16 Oct 2024 09:39:44 -0700 Subject: [PATCH] Make `timeout` an optional param in `KeyWatcher.updates` --- nats/js/kv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nats/js/kv.py b/nats/js/kv.py index 071205aa..916dc586 100644 --- a/nats/js/kv.py +++ b/nats/js/kv.py @@ -318,7 +318,7 @@ async def stop(self): """ await self._sub.unsubscribe() - async def updates(self, timeout=5.0): + async def updates(self, timeout: Optional[float] = 5.0): """ updates fetches the next update from a watcher. """