Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardan2009 committed May 20, 2024
1 parent bbd07b8 commit 1a9c0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def try_register(self, res: ParseResult[U]) -> Optional[U]:
return None
return self.register(res)

def success(self, node: T) -> ParseResult[T]:
def success(self, node: T) -> Optional[ParseResult[T]]:
self.node = node
return self

Expand Down

0 comments on commit 1a9c0ac

Please sign in to comment.