Skip to content

Clairfy when DictComp.expr value is None in the ast docs #151925

Description

@mushitoriami

Documentation

In Python 3.15 (via PEP 798), the value parameter type of ast.DictComp was changed from expr to expr | None to support unpacking in dict comprehensions. However, the current ast module documentation does not mention this change. It would be helpful to show what kind of Python code causes value to be None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15pre-release feature fixes, bugs and security fixesdocsDocumentation in the Doc dir
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions