KEMBAR78
Support narrowing of walrus in most cases (#8458) by sthagen · Pull Request #32 · sthagen/python-mypy · GitHub
Skip to content

Conversation

@sthagen
Copy link
Owner

@sthagen sthagen commented Feb 29, 2020

It is a pretty simple matter of pulling out the assignment target from
the walrus. We don't bother handling things like x := (y := z) since
I can't imagine they are common enough to be worth bothering but we
could in the future if anyone cares.

Fixes python#8447.

It is a pretty simple matter of pulling out the assignment target from
the walrus. We don't bother handling things like `x := (y := z)` since
I can't imagine they are common enough to be worth bothering but we
could in the future if anyone cares.

Fixes #8447.
@sthagen sthagen merged commit 1feab6b into sthagen:master Feb 29, 2020
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.

PEP 572 Walrus Operator Regex Assignment in Condition

2 participants