Skip to content

Show return type annotation when show_signature_annotations = true #4

Closed

Description

@johnthagen

Describe the solution you'd like

When setting:

plugins:
  - search
  - mkdocstrings:
      handlers:
        python:
          rendering:
            show_signature_annotations: true

It would be helpful if this also rendered the return type (e.g -> int)

Screen Shot 2022-02-22 at 8 10 49 AM

This is the common, concise way that Python developers are used to reading types.

Describe alternatives you've considered

An extra configuration option, but I don't think that is necessary.

Activity

  1. pawamoy commented on Feb 22, 2022

    @pawamoy
    Member

    Fixed in version 0.6.4 🙂

  2. johnthagen commented on Feb 22, 2022

    @johnthagen
    Author

    Confirmed this is fixed in 0.6.4. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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