Skip to content

feat: Support Await expressions#479

Merged
pawamoy merged 2 commits into
mkdocstrings:mainfrom
gaoflow:fix-await-expression-support
Jul 18, 2026
Merged

feat: Support Await expressions#479
pawamoy merged 2 commits into
mkdocstrings:mainfrom
gaoflow:fix-await-expression-support

Conversation

@gaoflow

@gaoflow gaoflow commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

For reviewers

  • I did not use AI
  • I used AI and thoroughly reviewed every code/docs change

Description of the change

get_expression() currently supports every concrete Python expression node except
ast.Await, which raises KeyError. This adds the missing expression model, builder,
precedence handling, public export, and an AST-equivalence matrix covering Await in its
precedence-sensitive contexts.

Relevant resources

@pawamoy pawamoy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks @gaoflow!

@pawamoy
pawamoy merged commit 6b3caab into mkdocstrings:main Jul 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants