Skip to content

Improve call expressions in type annotations with native parser#21300

Merged
JukkaL merged 1 commit intomasterfrom
native-parser-call-ann
Apr 23, 2026
Merged

Improve call expressions in type annotations with native parser#21300
JukkaL merged 1 commit intomasterfrom
native-parser-call-ann

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Apr 23, 2026

In particular, Annotated[foo, some_call(x=y)] shouldn't generate an error.

This depends on mypyc/ast_serialize#52 (which is included in our minimum ast-serialize version dependency).

In particular, `Annotated[foo, some_call(x=y)]` shouldn't generate an
error.

This requires recent changes to ast_serialize.
@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit 6e608f2 into master Apr 23, 2026
24 checks passed
@JukkaL JukkaL deleted the native-parser-call-ann branch April 23, 2026 13:03
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