mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-109118: Make comprehensions work within annotation scopes, but without inlining (#118160)
Co-authored-by: Carl Meyer <carl@oddbird.net>
This commit is contained in:
parent
51aefc5bf9
commit
2326d6c868
4 changed files with 39 additions and 34 deletions
|
@ -276,7 +276,9 @@ Other Language Changes
|
|||
(Contributed by Pedro Sousa Lacerda in :gh:`66449`.)
|
||||
|
||||
* :ref:`annotation scope <annotation-scopes>` within class scopes can now
|
||||
contain lambdas. (Contributed by Jelle Zijlstra in :gh:`109118`.)
|
||||
contain lambdas and comprehensions. Comprehensions that are located within
|
||||
class scopes are not inlined into their parent scope. (Contributed by
|
||||
Jelle Zijlstra in :gh:`109118` and :gh:`118160`.)
|
||||
|
||||
|
||||
New Modules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue