Skip to content

Commit 04b9ca1

Browse files
fix: Fix DefineNode.block
1 parent 01ce21c commit 04b9ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/cst/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def args_decl(self):
344344

345345
@property
346346
def block(self):
347-
return checked_cast(BlockNode, self.children[1])
347+
return checked_cast(BlockNode, self.children[2])
348348

349349

350350
class ArgsDeclNode(NamedNodeCls):

0 commit comments

Comments
 (0)