Skip to content
New issue

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

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

Already on GitHub? # to your account

Python comprehensions should open a local scope and set/infer VariableDeclarations for the variables #2005

Closed
KuechA opened this issue Jan 29, 2025 · 3 comments · Fixed by #2019
Assignees
Labels

Comments

@KuechA
Copy link
Contributor

KuechA commented Jan 29, 2025

Original post by @maximiliankaul : #1982 (comment)

The generators, comprehensions and so on do not open a scope yet.

@KuechA KuechA added the python label Jan 29, 2025
@KuechA KuechA changed the title Python comprehensions should open a local scope Python comprehensions should open a local scope and set/infer VariableDeclarations for the variables Jan 31, 2025
@KuechA
Copy link
Contributor Author

KuechA commented Jan 31, 2025

While working on #2016 , I realized that the refersTo is never set for the variables.

@maximiliankaul
Copy link
Contributor

While working on #2016 , I realized that the refersTo is never set for the variables.

Is there a bug / pr for this?

@KuechA
Copy link
Contributor Author

KuechA commented Feb 7, 2025

While working on #2016 , I realized that the refersTo is never set for the variables.

Is there a bug / pr for this?

This is part of #2019

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants