Skip to content

Conversation

@AlexWaygood
Copy link
Member

There are several places in the code base where we need to narrow list[Expression] -> list[StrExpr]. Currently we do this using casts, but TypeGuards are arguably a much more idiomatic way to do this kind of operation nowadays.

@JelleZijlstra JelleZijlstra self-assigned this Mar 11, 2023
@github-actions
Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit 106d57e into python:master Mar 11, 2023
@AlexWaygood AlexWaygood deleted the strexpr-lists branch March 11, 2023 16:09
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