gh-132479: Fix crash with multiple comprehensions in annotations (#13… · python/cpython@01317bb · GitHub
Skip to content

Commit 01317bb

Browse files
gh-132479: Fix crash with multiple comprehensions in annotations (#132778)
1 parent 08e331d commit 01317bb

3 files changed

Lines changed: 72 additions & 6 deletions

File tree

Lib/test/test_type_annotations.py

Lines changed: 63 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix compiler crash in certain circumstances where multiple module-level
2+
annotations include comprehensions and other nested scopes.

Python/symtable.c

Lines changed: 7 additions & 6 deletions

0 commit comments

Comments
 (0)