>>> x = 1
>>> f"___{
... x
... }___"
'___1___'
>>> f"___{(
... x
... )}___"
'___1___'
File "<stdin>", line 1
x:d
SyntaxError: unterminated f-string literal (detected at line 2)
Is this intended behaviour? This is not clarified in the PEP.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Invalid format specifier 'd
' for object of type 'int'