Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix walrus interaction with empty collections #16197

Merged
merged 1 commit into from Sep 28, 2023

Conversation

ilevkivskyi
Copy link
Member

This fixes a regression caused by #16122

@cdce8p Could you please check this fixes the issue for you? I tried your snippet and it passes, but there is a certain asymmetry in the reveal types that is hard to fix.

@github-actions
Copy link
Contributor

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

@cdce8p
Copy link
Collaborator

cdce8p commented Sep 28, 2023

Awesome! Thanks for the quick fix @ilevkivskyi
Can confirm this does work and fixes the regression for me.

@hauntsaninja hauntsaninja merged commit fddfc8d into python:master Sep 28, 2023
18 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-walrus-never branch September 28, 2023 22:07
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.

None yet

3 participants