Open
Description
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
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]bug:[/-][+]Docstring not showing when using the `type` statement. [/+]pawamoy commentedon Feb 9, 2025
Hi @oliversheridanmethven, thanks for the report!
It's a feature request rather than a bug (the language evolves and we have to keep up with it) 🙂 Good news, it's almost already supported, see mkdocstrings/griffe#348 and #221.