Skip to content

Docstring not showing when using the type statement.  #247

Description

@oliversheridanmethven

When I use the type statement introduced in Python 3.12, the docstring does not show. However, when I drop this the docstring shows up. Seems like a bug:

foo = list[str]
"""This docstring shows up."""

type bar = list[str]
"""This docstring does not show up."""

Activity

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

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions