mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-21 18:42:24 +08:00
Allow some unparenthesized syntactic structures in f-string expression part (#159)
Resolves #157, #158
This commit is contained in:
@@ -274,6 +274,8 @@ def test_paren_kwarg():
|
||||
r'fr"\""',
|
||||
r'fr"\\\""',
|
||||
r"print(f'Some {x:.2f} and some {y}')",
|
||||
# Unparenthesized yield expression
|
||||
'def foo(): return f"{yield 1}"',
|
||||
]
|
||||
)
|
||||
def test_valid_fstrings(code):
|
||||
|
||||
Reference in New Issue
Block a user