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 c4082c7 commit 6b645d5Copy full SHA for 6b645d5
backend/main/text.py
@@ -515,7 +515,7 @@ def check(self):
515
516
def truncated_trees_match(self, input_tree, program_tree):
517
input_tree = ast.Module(
518
- body=input_tree.body[len(program_tree.body):],
+ body=input_tree.body[:len(program_tree.body)],
519
type_ignores=[],
520
)
521
return is_ast_like(input_tree, program_tree)
0 commit comments