From 2d8ddf0a17a5569402af020ef093b088129b8cf9 Mon Sep 17 00:00:00 2001 From: Yifei Date: Wed, 4 Dec 2024 09:47:27 +0800 Subject: [PATCH] fix: remove redundant semicolon --- src/pegen/python_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pegen/python_generator.py b/src/pegen/python_generator.py index 05c9959..640bb9c 100644 --- a/src/pegen/python_generator.py +++ b/src/pegen/python_generator.py @@ -286,7 +286,7 @@ def alts_uses_locations(self, alts: Sequence[Alt]) -> bool: def add_return(self, ret_val: str) -> None: for stmt in self.cleanup_statements: self.print(stmt) - self.print(f"return {ret_val};") + self.print(f"return {ret_val}") def visit_Rule(self, node: Rule) -> None: is_loop = node.is_loop()