Skip to content

Docstring not showing when using the type statement.  #247

Open
@oliversheridanmethven

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."""

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