Skip to content

Commit

Permalink
Fix type annotation on post_parse argument in run_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ptmcg committed Mar 30, 2024
1 parent 55e57c5 commit 21ba705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyparsing/core.py
Expand Up @@ -2006,15 +2006,15 @@ def run_tests(
full_dump: bool = True,
print_results: bool = True,
failure_tests: bool = False,
post_parse: typing.Optional[Callable[[str, ParseResults], str]] = None,
post_parse: typing.Optional[Callable[[str, ParseResults], typing.Optional[str]]] = None,
file: typing.Optional[TextIO] = None,
with_line_numbers: bool = False,
*,
parseAll: bool = True,
fullDump: bool = True,
printResults: bool = True,
failureTests: bool = False,
postParse: typing.Optional[Callable[[str, ParseResults], str]] = None,
postParse: typing.Optional[Callable[[str, ParseResults], typing.Optional[str]]] = None,
) -> Tuple[bool, List[Tuple[str, Union[ParseResults, Exception]]]]:
"""
Execute the parse expression on a series of test strings, showing each
Expand Down

0 comments on commit 21ba705

Please sign in to comment.