Skip to content

Fix narrow for walrus expressions used in match statements#14844

Merged
JukkaL merged 1 commit intopython:masterfrom
hauntsaninja:match-walrus
Mar 6, 2023
Merged

Fix narrow for walrus expressions used in match statements#14844
JukkaL merged 1 commit intopython:masterfrom
hauntsaninja:match-walrus

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

Fixes #14843

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2023

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood added topic-pep-572 PEP 572 (walrus operator) topic-match-statement Python 3.10's match statement labels Mar 6, 2023
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Thanks!

@JukkaL JukkaL merged commit 31f70d7 into python:master Mar 6, 2023
@hauntsaninja hauntsaninja deleted the match-walrus branch March 6, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-match-statement Python 3.10's match statement topic-pep-572 PEP 572 (walrus operator)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Walrus in match expression leads to type not correctly inferred in case expression

3 participants