Skip to content

gh-104374: Remove access to class scopes for inlined comprehensions #104528

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

Merged
merged 10 commits into from
May 18, 2023
Prev Previous commit
Next Next commit
Update Lib/test/test_listcomps.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
  • Loading branch information
JelleZijlstra and carljm authored May 16, 2023
commit fa11ca9686457e0a33823f46b23c5266a622ff6b
2 changes: 1 addition & 1 deletion Lib/test/test_listcomps.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ class X:
vals = X.vals
"""
self._check_in_scopes(code, {"vals": [(0, 1), (1, 1)]},
scopes=["module", "fucntion"])
scopes=["module", "function"])


__test__ = {'doctests' : doctests}
Expand Down