Summary
As discussed in the stabilization PR (#16643), it would be nice to avoid flagging S704 on code like this:
def dashboard_link(self) -> Markup:
title = escape(self.dashboard_title or "<empty>")
return Markup(title)
by resolving variables passed to Markup.
It could also be nice to autofix simple f-strings or format calls into Markup.format calls.
See #16643 (comment) and #16643 (comment) for more context and ideas.