mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-27 21:32:29 +08:00
Allow unparenthesized walrus in set literals, set comprehensions and indexes
This commit is contained in:
@@ -356,6 +356,10 @@ if sys.version_info[:2] >= (3, 8):
|
||||
'(False := 1)',
|
||||
'(None := 1)',
|
||||
'(__debug__ := 1)',
|
||||
# Unparenthesized walrus not allowed in dict literals, dict comprehensions and slices
|
||||
'{a:="a": b:=1}',
|
||||
'{y:=1: 2 for x in range(5)}',
|
||||
'a[b:=0:1:2]',
|
||||
]
|
||||
# f-string debugging syntax with invalid conversion character
|
||||
FAILING_EXAMPLES += [
|
||||
|
||||
Reference in New Issue
Block a user