We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb7c40 commit 9b8270fCopy full SHA for 9b8270f
Compiler/types.py
@@ -6636,7 +6636,8 @@ def __getitem__(self, index):
6636
if isinstance(index, int) and index < 0:
6637
index += self.sizes[0]
6638
key = program.curr_tape, tuple(
6639
- (x, x.has_else) for x in program.curr_tape.if_states), str(index)
+ (x, None if isinstance(x, bool) else x.has_else)
6640
+ for x in program.curr_tape.if_states), str(index)
6641
if key not in self.sub_cache:
6642
index = self.check(index, self.sizes[0], self.sizes)
6643
if len(self.sizes) == 2:
0 commit comments