I've seen this pattern a handful of time:
"""
itemA
itemB
itemC
""".split()
or
And I'd like a rule to transform usages of join with literals into actual inline lists without the overhead of calling "join". My two examples above would become:
[
"itemA",
"itemB",
"itemC",
]
or
I don't think this rule exists in any linters that I'm aware of.
The exact details of how this gets formatted isn't important to this rule. Probably just rewrite everything on a single line and let formatting/other rules take care of the rest.