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

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

Open
KuechA opened this issue Jan 29, 2025 · 1 comment · May be fixed by #2019
Open
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.

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

Successfully merging a pull request may close this issue.

1 participant