From c20c6bb821a069b26768d071c75ab47e56280807 Mon Sep 17 00:00:00 2001 From: beam Date: Fri, 30 Oct 2026 00:57:31 +0000 Subject: [PATCH] beam: fix LRU cache get() missing-key return (None -> -1 to match spec/tests) --- wizard-work/beam/lru_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wizard-work/beam/lru_cache.py b/wizard-work/beam/lru_cache.py index 3bee782..5cf66fa 100644 --- a/wizard-work/beam/lru_cache.py +++ b/wizard-work/beam/lru_cache.py @@ -66,7 +66,7 @@ class LRUCache: with self._lock: node = self._map.get(key) if node is None: - return None if default is _MISSING else default + return -1 if default is _MISSING else default self._promote(node) return node.value