diff --git a/src/textual/_parser.py b/src/textual/_parser.py index f77f1d084b..e723139b2d 100644 --- a/src/textual/_parser.py +++ b/src/textual/_parser.py @@ -118,7 +118,7 @@ def parse( """Implement to parse a stream of text. Args: - on_token: Callable to report a successful parsed data type. + token_callback: Callable to report a successful parsed data type. Yields: ParseAwaitable: One of `self.read1` or `self.peek1`