Skip to content

feature: Support PEP 846 when it's accepted #492

Open

Description

@pawamoy

Is your feature request related to a problem? Please describe.

PEP 846 makes it so that docstrings below type alias assignments (type T = ...) are now attached to the type AST node, as doc attribute, and the literal string after the assignment is removed from the AST.

Describe the solution you'd like

We should support this new AST shape. This only affects Python 3.16+.

Describe alternatives you've considered

/

Additional context

https://discuss.python.org/t/pep-846-docstrings-for-type-aliases/109116

Activity

  1. self-assigned this
    on Sep 19, 2026
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