These should be initialized to None, see #143

This commit is contained in:
asagi4
2026-03-25 20:19:59 +02:00
parent 655f6ac4a1
commit 9931c6fa75
+2 -1
View File
@@ -71,7 +71,8 @@ class AttentionCoupleHook(TransformerOptionsHook):
}
self.has_negpip = False
# calculate later. All clones must refer to the same kv dict
self.kv = {"k": [], "v": []}
# The type is here to shut up the type checker
self.kv: dict[str, list] = {"k": None, "v": None}
def initialize_regions(self, base_cond, conds, fill):
self.num_conds = len(conds) + 1