In the current form, the variable a inside the braces and the literal 'tom' are both strings with the same content, but in actual use a problem occurs. The printed result is as follows: ...
Python 3.14 implements deferred evaluation of type annotations. It also imposes some new syntax restrictions on type annotations. In particular, it doesn't allow walrus operators or await keywords in ...