Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed default options not displaying for parameters without type hint…
…s. (#279) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Resolves #234
- Loading branch information
1 parent
32dc422
commit 4e6bc55
Showing
4 changed files
with
147 additions
and
35 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
34 changes: 34 additions & 0 deletions
34
tests/roots/test-dummy/dummy_module_without_complete_typehints.py
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,34 @@ | ||
def function_with_some_defaults_and_without_typehints(x, y=None): # noqa: U100 | ||
""" | ||
Function docstring. | ||
:param x: foo | ||
:param y: bar | ||
""" | ||
|
||
|
||
def function_with_some_defaults_and_some_typehints(x: int, y=None): # noqa: U100 | ||
""" | ||
Function docstring. | ||
:param x: foo | ||
:param y: bar | ||
""" | ||
|
||
|
||
def function_with_some_defaults_and_more_typehints(x: int, y=None) -> str: # noqa: U100 | ||
""" | ||
Function docstring. | ||
:param x: foo | ||
:param y: bar | ||
""" | ||
|
||
|
||
def function_with_defaults_and_some_typehints(x: int = 0, y=None) -> str: # noqa: U100 | ||
""" | ||
Function docstring. | ||
:param x: foo | ||
:param y: bar | ||
""" |
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,7 @@ | ||
Simple Module | ||
============= | ||
|
||
.. autofunction:: dummy_module_without_complete_typehints.function_with_some_defaults_and_without_typehints | ||
.. autofunction:: dummy_module_without_complete_typehints.function_with_some_defaults_and_some_typehints | ||
.. autofunction:: dummy_module_without_complete_typehints.function_with_some_defaults_and_more_typehints | ||
.. autofunction:: dummy_module_without_complete_typehints.function_with_defaults_and_some_typehints |
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