Skip to content

Commit 108eeca

Browse files
committed
Fix ast read writes
1 parent 9a9f3e7 commit 108eeca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

helion/_compiler/ast_read_writes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def visit_Name(self, node: ast.Name) -> None:
2828
def visit_Subscript(self, node: ast.Subscript) -> None:
2929
if isinstance(node.value, ast.Name):
3030
self._update(node.value.id, node.ctx)
31-
else:
32-
self.visit(node.value)
31+
self.generic_visit(node)
3332

3433
def visit_For(self, node: ast.For) -> None:
3534
# Skip target

0 commit comments

Comments
 (0)