A redundant extra part was written. Added a closing tag, to match the usage in PEP 750.
attributes = {"src": "shrubbery.jpg", "alt": "looks nice"}
template = t"<img {attributes}>"
- assert html(template) == '<img src="shrubbery.jpg" alt="looks nice" class="looks-nice">'
+ assert html(template) == '<img src="shrubbery.jpg" alt="looks nice" />'
Compared to using an f-string, the ``html`` function has access to template attributes
containing the original information: static strings, interpolations, and values