Skip to content

Conversation

@Demonstrandum
Copy link
Contributor

@Demonstrandum Demonstrandum commented May 9, 2025

According to the docs:

(https://docs.python.org/3.15/library/ast.html#ast.arguments)
kw_defaults is a list of default values for keyword-only arguments. If one is None, the corresponding argument is required.

However, ASDL's description of kw_defaults is that it simply a expr*, and not a expr?* as stated by the docs.

This continues the same correction for expr Dict in the ASDL in PR #131419.


I also corrected the syntax highlighting regex to support the chained qualifiers syntax introduced to the ASDL.

before after
Screenshot 2025-05-09 at 16 17 13 Screenshot 2025-05-09 at 16 21 14

📚 Documentation preview 📚: https://cpython-previews--133773.org.readthedocs.build/

…kw_defaults`

According to the docs:

> (https://docs.python.org/3.15/library/ast.html#ast.arguments)
> kw_defaults is a list of default values for keyword-only arguments. If one is None, the corresponding argument is required.

However, ASDL's description of `kw_defaults` is that it simply a
`expr*`, and not a `expr?*` as stated by the docs.
@picnixz
Copy link
Member

picnixz commented May 9, 2025

We'll just backport this to 3.14 (it'd be really weird to have the first part in 3.14 but not this one)

@Demonstrandum
Copy link
Contributor Author

any way I can help getting this done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants