A triple-quoted string inside an indented function either breaks the layout of your code or drags the indentation into the text. textwrap.dedent removes it.
textwrap.dedent(text) strips the leading whitespace that every line has in common:
from textwrap import dedent
def usage():
return dedent("""\
usage: backup.py <source>
--dry-run show what would happen
""")
The result starts at the left edge, and the second line keeps its two extra spaces of relative indent:
usage: backup.py <source>
--dry-run show what would happen
The backslash after the opening quotes avoids a blank first line, because it escapes the newline.
Two caveats. Tabs and spaces are not treated as equal, so a block that mixes them has no common prefix and nothing is removed. And with f-strings the order matters. If a value you insert contains a newline, its later lines start at column 0 and ruin the common prefix. For example, a multi-line string placed in an indented f-string comes out with the first line indented and the rest not. Dedent the template first and format afterwards:
dedent("""\
head
{}
""").format(multi)
One more thing the docs mention: lines that consist solely of whitespace are normalized to a newline and ignored when working out the margin, so blank lines inside the text do not stop the removal.
Further reading: textwrap.dedent