storage: add a TODO comment about lazy generators
- ID
f88f2f7- date
2026-11-16 07:41:13+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
0108275- message
storage: add a TODO comment about lazy generators- changed files
1 file, 2 additions
Changed files
src/funkycache/storage.py (12800 → 12874)
diff --git a/src/funkycache/storage.py b/src/funkycache/storage.py
index 820dc77..7aef38c 100644
--- a/src/funkycache/storage.py
+++ b/src/funkycache/storage.py
@@ -312,6 +312,8 @@ def _encode_key_as_json(key: dict[str, Any]) -> str:
This function must not mutate its input.
"""
+ # TODO: How do we handle lazy generators/iterators as the input key?
+
reduced_key = {k: _process_value(v) for k, v in key.items()}
try: