-
-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Using type hints and enabling show_signature_annotations
displays each parameters type correctly, but not default value unless its a string.
To Reproduce
Steps to reproduce the behavior:
- Define a method such as
def foo(a: str = 'hello', b: int = 10, c: bool = False, d: str = 'world') -> None
- Enable
show_signature_annotations
in yourmkdocs.yml
:
plugins:
- mkdocstrings:
handlers:
python:
rendering:
show_signature_annotations: True
- Observe in the generated docs only the string fields default values are displayed (ie
a
andd
).
System (please complete the following information):
mkdocs
versions:
mkdocs==1.2
mkdocstrings==0.18.1
mkdocstrings-python==0.6.6
- Python version: 3.7
- OS: Linux
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working