# 3.12 f-string errors: f-string: valid expression required before '}', f-string: expecting '}', f-string: single '}' is not allowed (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/3-12-f-string-errors-f-string-valid-expression-required-before-f-string-expecting-f-string-single-is-e5171462c8a0
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, syntaxerror, fstring

compile of f'{}' -> "f-string: valid expression required before '}'"; f'{a' and f'{' -> "f-string: expecting '}'"; f'}' -> "f-string: single '}' is not allowed".
