-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default values are not displayed for types other than string #8
Labels
bug
Something isn't working
Comments
Confirmed on Python 3.7 (greater versions seem unaffected). Thanks for the report 🙂 |
pawamoy
pushed a commit
to mkdocstrings/griffe
that referenced
this issue
Apr 1, 2022
Issue #59: #59 Issue mkdocstrings/python#8: mkdocstrings/python#8 PR #60: #60 Co-authored-by: Thomas PETIT-JEAN <thomas.petitjean-ext@aphp.fr> Co-authored-by: Timothée Mazzucotelli <pawamoy@pm.me>
Fixed in Griffe 0.14.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
def foo(a: str = 'hello', b: int = 10, c: bool = False, d: str = 'world') -> None
show_signature_annotations
in yourmkdocs.yml
:a
andd
).System (please complete the following information):
mkdocs
versions:The text was updated successfully, but these errors were encountered: