Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian-clausal committed Sep 16, 2024
1 parent cd2f01c commit 5950ca8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wikitextprocessor/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2346,11 +2346,15 @@ def print_tree(
tree: Union[str, WikiNode], indent: int, ret_value: Literal[True]
) -> str: ...


@overload
def print_tree(
tree: Union[str, WikiNode], indent: int = ..., ret_value: Literal[False]=...
tree: Union[str, WikiNode],
indent: int = ...,
ret_value: Literal[False] = ...,
) -> None: ...


def print_tree(
tree: Union[str, WikiNode], indent: int = 0, ret_value=False
) -> Optional[str]:
Expand Down

0 comments on commit 5950ca8

Please sign in to comment.