Skip to content

Conversation

@Vaishnavi-Iyer67
Copy link

This PR fixes an issue where types assigned using the walrus operator (:=) inside function call arguments were not propagated correctly during type checking.

In certain cases, the inferred type of a walrus assignment expression was not preserved when used as an argument, leading to incorrect or missing type information.

@github-actions
Copy link
Contributor

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

michaelm-openai pushed a commit to michaelm-openai/mypy that referenced this pull request Jan 16, 2026
michaelm-openai pushed a commit to michaelm-openai/mypy that referenced this pull request Jan 16, 2026
@Vaishnavi-Iyer67 Vaishnavi-Iyer67 deleted the fix-walrus-call-args-recovered branch January 22, 2026 17:23
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