These should be initialized to None, see #143
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user