Skip to content

Comprehensions trigger is_func_scope()#20540

Merged
hauntsaninja merged 1 commit into
python:masterfrom
A5rocks:top-level-async-for
Jan 6, 2026
Merged

Comprehensions trigger is_func_scope()#20540
hauntsaninja merged 1 commit into
python:masterfrom
A5rocks:top-level-async-for

Conversation

@A5rocks

@A5rocks A5rocks commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator

Fixes #20530

The issue here is similar to #14486

@github-actions

github-actions Bot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

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

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@hauntsaninja hauntsaninja merged commit 8eb14fb into python:master Jan 6, 2026
23 checks passed
@A5rocks A5rocks deleted the top-level-async-for branch January 6, 2026 23:53
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.

IndexError: list index out of range in visit_list_comprehension

3 participants