Skip to content

Docstring window doesn't show return type #601

@not-my-profile

Description

@not-my-profile

Enable Show docstring in the menu or the config. Then:

>>> def foo(x: int) -> str:
...     """Lorem ipsum."""
...     pass
>>> foo(
 
 
──────────────────────
foo(x: int)

Lorem ipsum.

The docstring window shows the type annotations of parameters but it doesn't show the return type annotation in the signature.
I find this to be unexpected because the Python builtin help does of course show the full signature for help(foo).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions