See PEP 750: disallow str + Template and the resulting PEP 750: restrict support for `Template` + `str` addition by davepeck · Pull Request #4395 · python/peps · GitHub