-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix union return type (Google style) (#67)
- Loading branch information
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# From this issue: https://github.com/jsh9/pydoclint/issues/66 | ||
|
||
|
||
def myFunc(arg1: int | str) -> str | bool | None: | ||
""" | ||
The docstring parser for Google-style docstring should be able to | ||
parse the docstring without issues. | ||
And then, pydoclint should be able to detect the discrepancy | ||
between the return type hints in the signature and in the | ||
docstring. | ||
Args: | ||
arg1 (int | str): Arg 1 | ||
Returns: | ||
str | bool | float: The return value | ||
""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters