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.
Documentation
In Python 3.15 (via PEP 798), the
valueparameter type ofast.DictCompwas changed fromexprtoexpr | Noneto support unpacking in dict comprehensions. However, the currentastmodule documentation does not mention this change. It would be helpful to show what kind of Python code causesvalueto beNone.