Skip to content

Commit 0a8fec4

Browse files
committed
Merge branch 'master' into nested-lists
2 parents 27fcd72 + 6b645d5 commit 0a8fec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/main/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def check(self):
515515

516516
def truncated_trees_match(self, input_tree, program_tree):
517517
input_tree = ast.Module(
518-
body=input_tree.body[len(program_tree.body):],
518+
body=input_tree.body[:len(program_tree.body)],
519519
type_ignores=[],
520520
)
521521
return is_ast_like(input_tree, program_tree)

0 commit comments

Comments
 (0)