Andrew Yim
6bb8e6ab3c
fix(notion-search): tighten cache type hints + deterministic TTL=0
...
Code review polish:
- Type hints: List → List[Dict[str, Any]] for cache_get return and
cache_put results parameter, since rerank produces dict-shaped entries.
- TTL=0 short-circuits to None deterministically. Previously the test
for ttl_seconds=0 passed only because clock motion between cache_put
and cache_get made `time.time() - cached_at > 0` true. Now the
semantics match the docstring intent.
8/8 tests still pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-28 07:45:44 +09:00
..
2026-03-23 19:32:44 +09:00
2026-04-06 00:33:59 +09:00
2026-04-06 00:33:59 +09:00
2026-01-31 16:50:17 +07:00
2026-01-31 16:50:17 +07:00
2026-01-31 16:50:17 +07:00
2026-04-05 20:32:46 +09:00
2026-01-31 16:50:17 +07:00
2026-01-31 16:50:17 +07:00
2026-01-31 16:50:17 +07:00
2026-01-31 16:50:17 +07:00
2026-01-31 16:50:17 +07:00
2026-03-21 12:52:59 +09:00
2026-02-13 02:37:39 +09:00
2026-02-13 02:37:39 +09:00
2026-02-13 02:37:39 +09:00
2026-02-13 02:37:39 +09:00
2026-02-13 02:37:39 +09:00
2026-02-13 02:37:39 +09:00
2026-02-13 12:05:59 +09:00
2026-03-08 03:09:36 +09:00
2026-03-08 03:09:36 +09:00
2026-03-08 03:09:36 +09:00
2026-02-14 01:09:35 +09:00
2026-02-14 01:09:35 +09:00
2026-02-14 01:09:35 +09:00
2026-02-14 01:09:35 +09:00
2026-02-14 01:09:35 +09:00
2026-02-14 01:09:35 +09:00
2026-02-14 01:09:35 +09:00
2026-02-13 02:37:39 +09:00
2026-02-13 02:37:39 +09:00
2026-04-28 07:45:44 +09:00
2026-02-14 01:09:35 +09:00
2026-04-27 11:38:53 +09:00
2026-02-14 01:09:35 +09:00
2026-02-14 01:09:35 +09:00
2026-02-14 01:09:35 +09:00
2026-02-03 16:48:06 +07:00
2026-02-03 16:48:06 +07:00
2026-03-31 03:20:53 +09:00
2026-02-03 16:48:06 +07:00
2026-02-03 16:48:06 +07:00
2026-03-27 20:02:00 +09:00
2026-03-29 16:21:22 +09:00
2026-03-24 20:37:24 +09:00
2026-02-03 19:07:00 +07:00
2026-02-03 19:07:00 +07:00
2026-02-03 19:07:00 +07:00
2026-02-03 19:07:00 +07:00
2026-03-21 02:22:46 +09:00
2026-03-17 21:55:50 +09:00
2026-03-17 21:55:50 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-03-23 19:32:44 +09:00
2026-04-13 01:55:11 +09:00
2026-02-03 16:48:06 +07:00
2026-04-23 21:13:09 +09:00